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