summaryrefslogtreecommitdiff
path: root/src/math/i386/acosf.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/i386/acosf.s')
-rw-r--r--src/math/i386/acosf.s16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/math/i386/acosf.s b/src/math/i386/acosf.s
new file mode 100644
index 0000000..d2cdfdb
--- /dev/null
+++ b/src/math/i386/acosf.s
@@ -0,0 +1,16 @@
+.global acosf
+.type acosf,@function
+acosf:
+ flds 4(%esp)
+ fld %st(0)
+ fld1
+ fsub %st(0),%st(1)
+ fadd %st(2)
+ fmulp
+ fsqrt
+ fabs # fix sign of zero (matters in downward rounding mode)
+ fxch %st(1)
+ fpatan
+ fstps 4(%esp)
+ flds 4(%esp)
+ ret