about summary refs log tree commit diff
path: root/src/math/i386/acos.s
diff options
context:
space:
mode:
authornsz <nsz@port70.net>2012-03-19 10:20:24 +0100
committernsz <nsz@port70.net>2012-03-19 10:20:24 +0100
commit9322344fa4c47a64361a81eda1b1930cd4341626 (patch)
tree94a641e60aef228d799035dc7c4a889ff39e4b3a /src/math/i386/acos.s
parent0627e58af8514967372a8ff703e7a86c2571acc2 (diff)
parent58ff9e8eaf99f2294232be860daa2ca6f3674faf (diff)
downloadmusl-9322344fa4c47a64361a81eda1b1930cd4341626.tar.gz
musl-9322344fa4c47a64361a81eda1b1930cd4341626.tar.xz
musl-9322344fa4c47a64361a81eda1b1930cd4341626.zip
Merge branch 'master' of git://git.etalabs.net/musl
Diffstat (limited to 'src/math/i386/acos.s')
-rw-r--r--src/math/i386/acos.s24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/math/i386/acos.s b/src/math/i386/acos.s
new file mode 100644
index 00000000..6f9ef7f0
--- /dev/null
+++ b/src/math/i386/acos.s
@@ -0,0 +1,24 @@
+.global acosf
+.type acosf,@function
+acosf:
+	flds 4(%esp)
+	jmp 1f
+
+.global acosl
+.type acosl,@function
+acosl:
+	fldt 4(%esp)
+	jmp 1f
+
+.global acos
+.type acos,@function
+acos:
+	fldl 4(%esp)
+1:	fld %st(0)
+	fmul %st(0)
+	fld1
+	fsubp %st(1)
+	fsqrt
+	fxch %st(1)
+	fpatan
+	ret