about summary refs log tree commit diff
path: root/src/math/x86_64/acosl.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/x86_64/acosl.s')
-rw-r--r--src/math/x86_64/acosl.s18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/math/x86_64/acosl.s b/src/math/x86_64/acosl.s
index db68d2de..88e01b49 100644
--- a/src/math/x86_64/acosl.s
+++ b/src/math/x86_64/acosl.s
@@ -1,18 +1,16 @@
+# see ../i386/acos.s
+
 .global acosl
 .type acosl,@function
 acosl:
 	fldt 8(%rsp)
+1:	fld %st(0)
 	fld1
-	fld %st(1)
-	fld1
-	fsubp
-	fsqrt
-	fxch %st(2)
-	faddp
+	fsub %st(0),%st(1)
+	fadd %st(2)
+	fmulp
 	fsqrt
+	fabs
+	fxch %st(1)
 	fpatan
-	fld1
-	fld1
-	faddp
-	fmulp
 	ret