Merge branch 'master' of git://git.etalabs.net/musl
authornsz <nsz@port70.net>
Mon, 19 Mar 2012 09:20:24 +0000 (10:20 +0100)
committernsz <nsz@port70.net>
Mon, 19 Mar 2012 09:20:24 +0000 (10:20 +0100)
21 files changed:
src/math/i386/acos.s [new file with mode: 0644]
src/math/i386/acosf.s [new file with mode: 0644]
src/math/i386/acosl.s [new file with mode: 0644]
src/math/i386/asin.s [new file with mode: 0644]
src/math/i386/asinf.s [new file with mode: 0644]
src/math/i386/asinl.s [new file with mode: 0644]
src/math/i386/atan.s [new file with mode: 0644]
src/math/i386/atan2.s [new file with mode: 0644]
src/math/i386/atan2f.s [new file with mode: 0644]
src/math/i386/atan2l.s [new file with mode: 0644]
src/math/i386/atanf.s [new file with mode: 0644]
src/math/i386/atanl.s [new file with mode: 0644]
src/math/i386/ldexp.s [new file with mode: 0644]
src/math/i386/ldexpf.s [new file with mode: 0644]
src/math/i386/ldexpl.s [new file with mode: 0644]
src/math/i386/scalbln.s [new file with mode: 0644]
src/math/i386/scalblnf.s [new file with mode: 0644]
src/math/i386/scalblnl.s [new file with mode: 0644]
src/math/i386/scalbn.s [new file with mode: 0644]
src/math/i386/scalbnf.s [new file with mode: 0644]
src/math/i386/scalbnl.s [new file with mode: 0644]

diff --git a/src/math/i386/acos.s b/src/math/i386/acos.s
new file mode 100644 (file)
index 0000000..6f9ef7f
--- /dev/null
@@ -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
diff --git a/src/math/i386/acosf.s b/src/math/i386/acosf.s
new file mode 100644 (file)
index 0000000..6c95509
--- /dev/null
@@ -0,0 +1 @@
+# see acos.s
diff --git a/src/math/i386/acosl.s b/src/math/i386/acosl.s
new file mode 100644 (file)
index 0000000..6c95509
--- /dev/null
@@ -0,0 +1 @@
+# see acos.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
diff --git a/src/math/i386/asinf.s b/src/math/i386/asinf.s
new file mode 100644 (file)
index 0000000..e07bf59
--- /dev/null
@@ -0,0 +1 @@
+# see asin.s
diff --git a/src/math/i386/asinl.s b/src/math/i386/asinl.s
new file mode 100644 (file)
index 0000000..e07bf59
--- /dev/null
@@ -0,0 +1 @@
+# see asin.s
diff --git a/src/math/i386/atan.s b/src/math/i386/atan.s
new file mode 100644 (file)
index 0000000..7e28b39
--- /dev/null
@@ -0,0 +1,7 @@
+.global atan
+.type atan,@function
+atan:
+       fldl 4(%esp)
+       fld1
+       fpatan
+       ret
diff --git a/src/math/i386/atan2.s b/src/math/i386/atan2.s
new file mode 100644 (file)
index 0000000..5c795af
--- /dev/null
@@ -0,0 +1,7 @@
+.global atan2
+.type atan2,@function
+atan2:
+       fldl 4(%esp)
+       fldl 12(%esp)
+       fpatan
+       ret
diff --git a/src/math/i386/atan2f.s b/src/math/i386/atan2f.s
new file mode 100644 (file)
index 0000000..08627e6
--- /dev/null
@@ -0,0 +1,7 @@
+.global atan2f
+.type atan2f,@function
+atan2f:
+       flds 4(%esp)
+       flds 8(%esp)
+       fpatan
+       ret
diff --git a/src/math/i386/atan2l.s b/src/math/i386/atan2l.s
new file mode 100644 (file)
index 0000000..adf6e10
--- /dev/null
@@ -0,0 +1,7 @@
+.global atan2l
+.type atan2l,@function
+atan2l:
+       fldt 4(%esp)
+       fldt 16(%esp)
+       fpatan
+       ret
diff --git a/src/math/i386/atanf.s b/src/math/i386/atanf.s
new file mode 100644 (file)
index 0000000..3cd4023
--- /dev/null
@@ -0,0 +1,7 @@
+.global atanf
+.type atanf,@function
+atanf:
+       flds 4(%esp)
+       fld1
+       fpatan
+       ret
diff --git a/src/math/i386/atanl.s b/src/math/i386/atanl.s
new file mode 100644 (file)
index 0000000..c508bc4
--- /dev/null
@@ -0,0 +1,7 @@
+.global atanl
+.type atanl,@function
+atanl:
+       fldt 4(%esp)
+       fld1
+       fpatan
+       ret
diff --git a/src/math/i386/ldexp.s b/src/math/i386/ldexp.s
new file mode 100644 (file)
index 0000000..c430f78
--- /dev/null
@@ -0,0 +1 @@
+# see scalbn.s
diff --git a/src/math/i386/ldexpf.s b/src/math/i386/ldexpf.s
new file mode 100644 (file)
index 0000000..3f8e4b9
--- /dev/null
@@ -0,0 +1 @@
+# see scalbnf.s
diff --git a/src/math/i386/ldexpl.s b/src/math/i386/ldexpl.s
new file mode 100644 (file)
index 0000000..86fe562
--- /dev/null
@@ -0,0 +1 @@
+# see scalbnl.s
diff --git a/src/math/i386/scalbln.s b/src/math/i386/scalbln.s
new file mode 100644 (file)
index 0000000..c430f78
--- /dev/null
@@ -0,0 +1 @@
+# see scalbn.s
diff --git a/src/math/i386/scalblnf.s b/src/math/i386/scalblnf.s
new file mode 100644 (file)
index 0000000..3f8e4b9
--- /dev/null
@@ -0,0 +1 @@
+# see scalbnf.s
diff --git a/src/math/i386/scalblnl.s b/src/math/i386/scalblnl.s
new file mode 100644 (file)
index 0000000..86fe562
--- /dev/null
@@ -0,0 +1 @@
+# see scalbnl.s
diff --git a/src/math/i386/scalbn.s b/src/math/i386/scalbn.s
new file mode 100644 (file)
index 0000000..e275d14
--- /dev/null
@@ -0,0 +1,20 @@
+.global ldexp
+.type ldexp,@function
+ldexp:
+       nop
+
+.global scalbln
+.type scalbln,@function
+scalbln:
+       nop
+
+.global scalbn
+.type scalbn,@function
+scalbn:
+       fildl 12(%esp)
+       fldl 4(%esp)
+       fscale
+       fstp %st(1)
+       fstpl 4(%esp)
+       fldl 4(%esp)
+       ret
diff --git a/src/math/i386/scalbnf.s b/src/math/i386/scalbnf.s
new file mode 100644 (file)
index 0000000..40232b6
--- /dev/null
@@ -0,0 +1,20 @@
+.global ldexpf
+.type ldexpf,@function
+ldexpf:
+       nop
+
+.global scalblnf
+.type scalblnf,@function
+scalblnf:
+       nop
+
+.global scalbnf
+.type scalbnf,@function
+scalbnf:
+       fildl 8(%esp)
+       flds 4(%esp)
+       fscale
+       fstp %st(1)
+       fstps 4(%esp)
+       flds 4(%esp)
+       ret
diff --git a/src/math/i386/scalbnl.s b/src/math/i386/scalbnl.s
new file mode 100644 (file)
index 0000000..224b1be
--- /dev/null
@@ -0,0 +1,18 @@
+.global ldexpl
+.type ldexpl,@function
+ldexpl:
+       nop
+
+.global scalblnl
+.type scalblnl,@function
+scalblnl:
+       nop
+
+.global scalbnl
+.type scalbnl,@function
+scalbnl:
+       fildl 16(%esp)
+       fldt 4(%esp)
+       fscale
+       fstp %st(1)
+       ret