about summary refs log tree commit diff
path: root/src/math/x86_64/fmodl.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/x86_64/fmodl.s')
-rw-r--r--src/math/x86_64/fmodl.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/x86_64/fmodl.s b/src/math/x86_64/fmodl.s
index ca81e60c..cd8d2b7c 100644
--- a/src/math/x86_64/fmodl.s
+++ b/src/math/x86_64/fmodl.s
@@ -5,7 +5,7 @@ fmodl:
 	fldt 8(%rsp)
 1:	fprem
 	fstsw %ax
-	sahf
-	jp 1b
+	testb $4,%ah
+	jnz 1b
 	fstp %st(1)
 	ret