summaryrefslogtreecommitdiff
path: root/src/math/x86_64/remainderl.s
blob: 2c337cf57839c7f3f04709faf8c3eb3fb0b0b902 (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
	fstsw %ax
	testb $4,%ah
	jnz 1b
	fstp %st(1)
	ret