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