faster x86 asm version of the PosEx() function