asm for log2
This commit is contained in:
parent
27deb53889
commit
9d82a15e15
3 changed files with 21 additions and 0 deletions
7
src/math/i386/log2.s
Normal file
7
src/math/i386/log2.s
Normal 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
7
src/math/i386/log2f.s
Normal 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
7
src/math/i386/log2l.s
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
.global log2l
|
||||||
|
.type log2l,@function
|
||||||
|
log2l:
|
||||||
|
fld1
|
||||||
|
fldt 4(%esp)
|
||||||
|
fyl2x
|
||||||
|
ret
|
||||||
Loading…
Add table
Add a link
Reference in a new issue