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