fix dynamic linker mapping/clearing bss in first/only LOAD segment
[musl] / src / math / x86_64 / remainderl.s
index 75c1237..cb3857b 100644 (file)
@@ -4,8 +4,8 @@ remainderl:
        fldt 24(%rsp)
        fldt 8(%rsp)
 1:     fprem1
-       fstsw %ax
-       sahf
-       jp 1b
+       fnstsw %ax
+       testb $4,%ah
+       jnz 1b
        fstp %st(1)
        ret