]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
x86/x64: Avoid use of SAHF instruction.
authorMike Pall <mike>
Thu, 27 Mar 2014 10:38:07 +0000 (11:38 +0100)
committerMike Pall <mike>
Thu, 27 Mar 2014 10:38:07 +0000 (11:38 +0100)
src/vm_x86.dasc

index 8a9b536df5ee52741e5267cfade58242816f1408..bd7056f8b8ee47e95b3ee93ee91c6019b9bb6106 100644 (file)
@@ -2198,7 +2198,7 @@ static void build_subroutines(BuildCtx *ctx)
   |.endif
   |
   |.ffunc_nnr math_fmod
-  |1: ; fprem; fnstsw ax; sahf; jp <1
+  |1: ; fprem; fnstsw ax; and ax, 0x400; jnz <1
   |  fpop1
   |  jmp ->fff_resn
   |