fix excess precision in return value of i386 atan[2][f]
[musl] / src / math / i386 / atan.s
index d73137b..2c57f6b 100644 (file)
@@ -8,10 +8,9 @@ atan:
        jb 1f
        fld1
        fpatan
+       fstpl 4(%esp)
+       fldl 4(%esp)
        ret
                # subnormal x, return x with underflow
-1:     fnstsw %ax
-       and $16,%ax
-       jnz 2f
-       fsts 4(%esp)
-2:     ret
+1:     fsts 4(%esp)
+       ret