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