Mathematical functions are added some.

It is added makefile for compilation of programs under KolibriOS with the help gcc.

git-svn-id: svn://kolibrios.org@696 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
andrew_programmer
2008-01-14 19:33:34 +00:00
parent 606f0073f5
commit 48ecbd9104
15 changed files with 331 additions and 9 deletions

View File

@@ -0,0 +1,30 @@
format ELF
include 'proc32.inc'
section '.text' executable
public ceil
ceil:
push ebp
mov ebp,esp
sub esp,8
fstcw [ebp-12]
mov dx,[ebp-12]
or dx,0x0800
and dx,0xfbff
mov word[ebp-16],dx
fldcw [ebp-16]
fld qword[ebp+8]
frndint
fldcw [ebp-12]
leave
ret