summaryrefslogtreecommitdiff
path: root/src/math/i386/atan.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/i386/atan.s')
-rw-r--r--src/math/i386/atan.s9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/math/i386/atan.s b/src/math/i386/atan.s
index d73137b2..2c57f6b3 100644
--- a/src/math/i386/atan.s
+++ b/src/math/i386/atan.s
@@ -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