summaryrefslogtreecommitdiff
path: root/src/math/x86_64/remainderl.s
blob: cb3857b48630f5f295ef9980a0243fe22623876b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
.global remainderl
.type remainderl,@function
remainderl:
	fldt 24(%rsp)
	fldt 8(%rsp)
1:	fprem1
	fnstsw %ax
	testb $4,%ah
	jnz 1b
	fstp %st(1)
	ret