asm for log2

This commit is contained in:
Rich Felker committed 2012-03-19 10:43:28 -04:00
1 parent 27deb53889
commit 9d82a15e15
3 files changed
+21

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
.global log2
.type log2,@function
log2:
fld1
fldl 4(%esp)
fyl2x
ret
+7
View File
@@ -0,0 +1,7 @@
.global log2f
.type log2f,@function
log2f:
fld1
flds 4(%esp)
fyl2x
ret
+7
View File
@@ -0,0 +1,7 @@
.global log2l
.type log2l,@function
log2l:
fld1
fldt 4(%esp)
fyl2x
ret