Browse Source

x86/x64: Avoid use of SAHF instruction.

Mike Pall 11 years ago
parent
commit
c03be1210c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/vm_x86.dasc

+ 1 - 1
src/vm_x86.dasc

@@ -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
   |