math: fix x86_64 and x32 asm not to use sahf instruction
[musl] / src / math / x86_64 / remainderl.s
index 75c1237..2c337cf 100644 (file)
@@ -5,7 +5,7 @@ remainderl:
        fldt 8(%rsp)
 1:     fprem1
        fstsw %ax
-       sahf
-       jp 1b
+       testb $4,%ah
+       jnz 1b
        fstp %st(1)
        ret