about summary refs log tree commit diff
path: root/src/math/i386/asin.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/i386/asin.s')
-rw-r--r--src/math/i386/asin.s23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/math/i386/asin.s b/src/math/i386/asin.s
new file mode 100644
index 00000000..cab7bfc8
--- /dev/null
+++ b/src/math/i386/asin.s
@@ -0,0 +1,23 @@
+.global asinf
+.type asinf,@function
+asinf:
+	flds 4(%esp)
+	jmp 1f
+
+.global asinl
+.type asinl,@function
+asinl:
+	fldt 4(%esp)
+	jmp 1f
+
+.global asin
+.type asin,@function
+asin:
+	fldl 4(%esp)
+1:	fld %st(0)
+	fmul %st(0)
+	fld1
+	fsubp %st(1)
+	fsqrt
+	fpatan
+	ret