forked from KolibriOS/kolibrios
e08c6968ef
git-svn-id: svn://kolibrios.org@9558 a494cfbc-eb01-0410-851d-a64ba20cac60
31 lines
284 B
NASM
31 lines
284 B
NASM
|
|
format ELF
|
|
include '../proc32.inc'
|
|
section '.text' executable
|
|
|
|
public ceilf
|
|
|
|
ceilf:
|
|
|
|
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 dword[ebp+8]
|
|
frndint
|
|
|
|
fldcw [ebp-12]
|
|
|
|
leave
|
|
|
|
ret
|
|
|
|
|