forked from KolibriOS/kolibrios
libc.obj: added log2, log10, round functions
git-svn-id: svn://kolibrios.org@9772 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
.global log10;
|
||||
|
||||
log10:
|
||||
fld1
|
||||
fldl 4(%esp)
|
||||
fyl2x
|
||||
fldl2t
|
||||
fdivp
|
||||
ret
|
||||
@@ -0,0 +1,7 @@
|
||||
.global log2;
|
||||
|
||||
log2:
|
||||
fld1
|
||||
fldl 4(%esp)
|
||||
fyl2x
|
||||
ret
|
||||
@@ -0,0 +1,7 @@
|
||||
.global round;
|
||||
|
||||
round:
|
||||
fldl 4(%esp)
|
||||
fistp 4(%esp)
|
||||
fild 4(%esp)
|
||||
ret
|
||||
Reference in New Issue
Block a user