summaryrefslogblamecommitdiff
path: root/src/math/x86_64/llrintl.c
blob: c439ef28d1fd8aa4a9ceb471ad12c7ff9e018650 (plain) (tree)
1
2
3
4
5
6
7
8







                                                         
#include <math.h>

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