summaryrefslogtreecommitdiff
path: root/src/math/x86_64/fmodl.s
blob: ea07b402fed7e73001e74745f51fa1a501568476 (plain) (blame)
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
	fnstsw %ax
	testb $4,%ah
	jnz 1b
	fstp %st(1)
	ret