about summary refs log tree commit diff
path: root/src/math/x86_64/lrintl.c
blob: 068e2e4d62cf6102e357f0009c063b2df42088c7 (plain) (blame)
1
2
3
4
5
6
7
8
#include <math.h>

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