about summary refs log tree commit diff
path: root/src/math/i386/acosl.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/i386/acosl.s')
-rw-r--r--src/math/i386/acosl.s15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/math/i386/acosl.s b/src/math/i386/acosl.s
index 6c95509f..599c8230 100644
--- a/src/math/i386/acosl.s
+++ b/src/math/i386/acosl.s
@@ -1 +1,14 @@
-# see acos.s
+.global acosl
+.type acosl,@function
+acosl:
+	fldt 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
+	ret