asm for log2

This commit is contained in:
Rich Felker 2012-03-19 10:43:28 -04:00
parent 27deb53889
commit 9d82a15e15
3 changed files with 21 additions and 0 deletions

7
src/math/i386/log2.s Normal file
View File

@ -0,0 +1,7 @@
.global log2
.type log2,@function
log2:
fld1
fldl 4(%esp)
fyl2x
ret

7
src/math/i386/log2f.s Normal file
View File

@ -0,0 +1,7 @@
.global log2f
.type log2f,@function
log2f:
fld1
flds 4(%esp)
fyl2x
ret

7
src/math/i386/log2l.s Normal file
View File

@ -0,0 +1,7 @@
.global log2l
.type log2l,@function
log2l:
fld1
fldt 4(%esp)
fyl2x
ret