summaryrefslogblamecommitdiff
path: root/src/math/i386/fmod.s
blob: 069fbfe765a51ac539db368f3546946025583873 (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
	fstsw %ax
	sahf
	jp 1b
	fstp %st(1)
	ret