asm for inverse trig functions
[musl] / src / math / i386 / asin.s
diff --git a/src/math/i386/asin.s b/src/math/i386/asin.s
new file mode 100644 (file)
index 0000000..cab7bfc
--- /dev/null
@@ -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