summaryrefslogblamecommitdiff
path: root/src/math/i386/fmod.s
blob: 2113b3c54a2a49916c63d3d4f9d1876e48e1b122 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11





                     
                  



                   
.global fmod
.type fmod,@function
fmod:
	fldl 12(%esp)
	fldl 4(%esp)
1:	fprem
	fnstsw %ax
	sahf
	jp 1b
	fstp %st(1)
	ret