summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/math/i386/atan.s
diff options
context:
space:
mode:
Diffstat (limited to 'libc-top-half/musl/src/math/i386/atan.s')
-rw-r--r--libc-top-half/musl/src/math/i386/atan.s16
1 files changed, 16 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/math/i386/atan.s b/libc-top-half/musl/src/math/i386/atan.s
new file mode 100644
index 0000000..2c57f6b
--- /dev/null
+++ b/libc-top-half/musl/src/math/i386/atan.s
@@ -0,0 +1,16 @@
+.global atan
+.type atan,@function
+atan:
+ fldl 4(%esp)
+ mov 8(%esp),%eax
+ add %eax,%eax
+ cmp $0x00200000,%eax
+ jb 1f
+ fld1
+ fpatan
+ fstpl 4(%esp)
+ fldl 4(%esp)
+ ret
+ # subnormal x, return x with underflow
+1: fsts 4(%esp)
+ ret