9 lines
121 B
C
9 lines
121 B
C
#include <math.h>
|
|
|
|
long lrintl(long double x)
|
|
{
|
|
long r;
|
|
__asm__ ("fistpll %0" : "=m"(r) : "t"(x) : "st");
|
|
return r;
|
|
}
|