aboutsummaryrefslogtreecommitdiff
path: root/src/math/i386/e_remainder.s
blob: b7ff3ef82ef60ddd2c5af788fa303be5181de6f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
.global remainderf
remainderf:
	flds 8(%esp)
	flds 4(%esp)
	jmp 1f
	
.global remainder
remainder:
	fldl 12(%esp)
	fldl 4(%esp)
1:	fprem1
	fstsw %ax
	sahf
	jp 1b
	fstp %st(1)
	ret