summaryrefslogtreecommitdiff
path: root/src/math/i386/atan2.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/i386/atan2.s')
-rw-r--r--src/math/i386/atan2.s6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/math/i386/atan2.s b/src/math/i386/atan2.s
index a7d2979b..8bc441b1 100644
--- a/src/math/i386/atan2.s
+++ b/src/math/i386/atan2.s
@@ -4,14 +4,12 @@ atan2:
fldl 4(%esp)
fldl 12(%esp)
fpatan
- fstl 4(%esp)
+ fstpl 4(%esp)
+ fldl 4(%esp)
mov 8(%esp),%eax
add %eax,%eax
cmp $0x00200000,%eax
jae 1f
# subnormal x, return x with underflow
- fnstsw %ax
- and $16,%ax
- jnz 1f
fsts 4(%esp)
1: ret