mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-17 04:12:34 +03:00
24 lines
344 B
ArmAsm
24 lines
344 B
ArmAsm
|
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
||
|
|
||
|
.global modfl;
|
||
|
|
||
|
modfl:
|
||
|
pushl %ebp
|
||
|
movl %esp,%ebp
|
||
|
subl $4,%esp
|
||
|
fldt 8(%ebp)
|
||
|
movl 20(%ebp),%eax
|
||
|
fnstcw -2(%ebp)
|
||
|
movw -2(%ebp),%dx
|
||
|
orb $0x0c,%dh
|
||
|
movw %dx,-4(%ebp)
|
||
|
fldcw -4(%ebp)
|
||
|
fld %st(0)
|
||
|
frndint
|
||
|
fldcw -2(%ebp)
|
||
|
fld %st(0)
|
||
|
fstpt (%eax)
|
||
|
fsubrp %st,%st(1)
|
||
|
leave
|
||
|
ret
|