summaryrefslogtreecommitdiff
path: root/src/math/i386/remainderf.s
blob: 5b5fc2356f1d6b5335102ea0cb314b5e55e800e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
.global remainderf
.type remainderf,@function
remainderf:
	flds 8(%esp)
	flds 4(%esp)
1:	fprem1
	fstsw %ax
	sahf
	jp 1b
	fstp %st(1)
	ret