xref: /reactos/sdk/lib/crt/math/i386/fmod_asm.s (revision c2c66aff)
1
2#include <asm.inc>
3
4PUBLIC _fmod
5
6/* FUNCTIONS ***************************************************************/
7.code
8
9_fmod:
10    push ebp
11    mov ebp, esp
12
13    fld qword ptr [ebp + 8]
14    fld qword ptr [ebp + 16]
15    fxch st(1)
16l1:
17    fprem
18    fstsw ax
19    sahf
20    jp l1
21    fstp st(1)
22
23    pop ebp
24    ret
25
26END
27