Explorar o código

x86/x64: Avoid use of SAHF instruction.

Mike Pall %!s(int64=11) %!d(string=hai) anos
pai
achega
c03be1210c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
   |