summaryrefslogtreecommitdiff
path: root/src/math/x86_64/remainderl.s
blob: 75c123744621fd00d3acec785d44b4ebdfcbebd8 (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
	sahf
	jp 1b
	fstp %st(1)
	ret