libc.obj: added log2, log10, round functions

git-svn-id: svn://kolibrios.org@9772 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
vitalkrilov
2022-04-20 17:08:10 +00:00
parent e7935a8fbd
commit fda5ad66db
5 changed files with 32 additions and 2 deletions
+9
View File
@@ -0,0 +1,9 @@
.global log10;
log10:
fld1
fldl 4(%esp)
fyl2x
fldl2t
fdivp
ret
+7
View File
@@ -0,0 +1,7 @@
.global log2;
log2:
fld1
fldl 4(%esp)
fyl2x
ret
+7
View File
@@ -0,0 +1,7 @@
.global round;
round:
fldl 4(%esp)
fistp 4(%esp)
fild 4(%esp)
ret