asm for log2
authorRich Felker <dalias@aerifal.cx>
Mon, 19 Mar 2012 14:43:28 +0000 (10:43 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 19 Mar 2012 14:43:28 +0000 (10:43 -0400)
src/math/i386/log2.s [new file with mode: 0644]
src/math/i386/log2f.s [new file with mode: 0644]
src/math/i386/log2l.s [new file with mode: 0644]

diff --git a/src/math/i386/log2.s b/src/math/i386/log2.s
new file mode 100644 (file)
index 0000000..1508803
--- /dev/null
@@ -0,0 +1,7 @@
+.global log2
+.type log2,@function
+log2:
+       fld1
+       fldl 4(%esp)
+       fyl2x
+       ret
diff --git a/src/math/i386/log2f.s b/src/math/i386/log2f.s
new file mode 100644 (file)
index 0000000..00cdce7
--- /dev/null
@@ -0,0 +1,7 @@
+.global log2f
+.type log2f,@function
+log2f:
+       fld1
+       flds 4(%esp)
+       fyl2x
+       ret
diff --git a/src/math/i386/log2l.s b/src/math/i386/log2l.s
new file mode 100644 (file)
index 0000000..c58f56f
--- /dev/null
@@ -0,0 +1,7 @@
+.global log2l
+.type log2l,@function
+log2l:
+       fld1
+       fldt 4(%esp)
+       fyl2x
+       ret