1 #include <math.h> 2 lrintl(long double x)3 long lrintl(long double x) 4 { 5 long r; 6 __asm__ ("fistpl %0" : "=m"(r) : "t"(x) : "st"); 7 return r; 8 } 9