summaryrefslogtreecommitdiff
path: root/src/math/i386/remainder.s
blob: ab1da95dd02fd8060b29297fd0930fe721a5bf5d (plain) (blame)
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
	fnstsw %ax
	sahf
	jp 1b
	fstp %st(1)
	ret