asm for modf functions
[musl] / src / math / i386 / modf.s
1 .global modf
2 .type modf,@function
3 modf:
4         mov 12(%esp),%eax
5         fldl 4(%esp)
6         fld1
7         fld %st(1)
8 1:      fprem
9         fstsw %ax
10         sahf
11         jp 1b
12         fstp %st(1)
13         fsubr %st(1)
14         fstpl (%eax)
15         ret