blob: c439ef28d1fd8aa4a9ceb471ad12c7ff9e018650 [file] [log] [blame]
#include <math.h>
long long llrintl(long double x)
{
long long r;
__asm__ ("fistpll %0" : "=m"(r) : "t"(x) : "st");
return r;
}