add support for non-option arguments extension to getopt
[musl] / src / math / x86_64 / fmodl.s
index ca81e60..ea07b40 100644 (file)
@@ -4,8 +4,8 @@ fmodl:
        fldt 24(%rsp)
        fldt 8(%rsp)
 1:     fprem
-       fstsw %ax
-       sahf
-       jp 1b
+       fnstsw %ax
+       testb $4,%ah
+       jnz 1b
        fstp %st(1)
        ret