From c03be1210c5334e58958d95ea0412c20c3eb0128 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Thu, 27 Mar 2014 11:38:07 +0100 Subject: [PATCH] x86/x64: Avoid use of SAHF instruction. --- src/vm_x86.dasc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vm_x86.dasc b/src/vm_x86.dasc index 8a9b536d..bd7056f8 100644 --- a/src/vm_x86.dasc +++ b/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 |