math: move x87-family remainder functions to C with inline asm
[musl.git] / src / math / i386 / fmodf.s
blobe04e2a567256267afa6e21df2d6bfef174814b18
1 .global fmodf
2 .type fmodf,@function
3 fmodf:
4 flds 8(%esp)
5 flds 4(%esp)
6 1: fprem
7 fnstsw %ax
8 sahf
9 jp 1b
10 fstp %st(1)
11 ret