reactos/lib/sdk/crt/math/i386/fmodf_asm.s
Timo Kreuzer 84b1635034 [CRT]
- Add #pragma function to a number of intrisics that we implement to avoid a compiler error of MSVC
- Add a workaround to prevent some functions from being inlined
- Move sqrtf out of i386 directory
- Convert a number of inline assembly functions to raw assembly

svn path=/branches/cmake-bringup/; revision=49534
2010-11-08 18:36:45 +00:00

27 lines
325 B
ArmAsm

#include <reactos/asm.h>
PUBLIC _fmodf
/* FUNCTIONS ***************************************************************/
.code
_fmodf:
push ebp
mov ebp, esp
fld dword ptr [esp + 4]
fld dword ptr [esp + 8]
fxch st(1)
l1:
fprem
fstsw ax
sahf
jp l1
fstp st(1)
pop ebp
ret
END