asm for log functions
authorRich Felker <dalias@aerifal.cx>
Mon, 19 Mar 2012 03:50:54 +0000 (23:50 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 19 Mar 2012 03:50:54 +0000 (23:50 -0400)
src/math/i386/log.s [new file with mode: 0644]
src/math/i386/log10.s [new file with mode: 0644]
src/math/i386/log10f.s [new file with mode: 0644]
src/math/i386/log10l.s [new file with mode: 0644]
src/math/i386/logf.s [new file with mode: 0644]
src/math/i386/logl.s [new file with mode: 0644]

diff --git a/src/math/i386/log.s b/src/math/i386/log.s
new file mode 100644 (file)
index 0000000..fcccf03
--- /dev/null
@@ -0,0 +1,7 @@
+.global log
+.type log,@function
+log:
+       fldln2
+       fldl 4(%esp)
+       fyl2x
+       ret
diff --git a/src/math/i386/log10.s b/src/math/i386/log10.s
new file mode 100644 (file)
index 0000000..28eb5b2
--- /dev/null
@@ -0,0 +1,7 @@
+.global log10
+.type log10,@function
+log10:
+       fldlg2
+       fldl 4(%esp)
+       fyl2x
+       ret
diff --git a/src/math/i386/log10f.s b/src/math/i386/log10f.s
new file mode 100644 (file)
index 0000000..c0c0c67
--- /dev/null
@@ -0,0 +1,7 @@
+.global log10f
+.type log10f,@function
+log10f:
+       fldlg2
+       flds 4(%esp)
+       fyl2x
+       ret
diff --git a/src/math/i386/log10l.s b/src/math/i386/log10l.s
new file mode 100644 (file)
index 0000000..aaa44f2
--- /dev/null
@@ -0,0 +1,7 @@
+.global log10l
+.type log10l,@function
+log10l:
+       fldlg2
+       fldt 4(%esp)
+       fyl2x
+       ret
diff --git a/src/math/i386/logf.s b/src/math/i386/logf.s
new file mode 100644 (file)
index 0000000..da7ff3a
--- /dev/null
@@ -0,0 +1,7 @@
+.global logf
+.type logf,@function
+logf:
+       fldln2
+       flds 4(%esp)
+       fyl2x
+       ret
diff --git a/src/math/i386/logl.s b/src/math/i386/logl.s
new file mode 100644 (file)
index 0000000..d4e3339
--- /dev/null
@@ -0,0 +1,7 @@
+.global logl
+.type logl,@function
+logl:
+       fldln2
+       fldt 4(%esp)
+       fyl2x
+       ret