aboutsummaryrefslogtreecommitdiff
path: root/src/math/x86_64/lrintl.c
blob: 8a53573423696b42283e427bee3c33846d2af4fd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <math.h>

long lrintl(long double x)
{
	long r;
	__asm__ ("fistpll %0" : "=m"(r) : "t"(x) : "st");
	return r;
}


#ifdef TEST
int
main(void) {
	return 0;
}
#endif