1 2 3 4 5 6 7
#include <math.h> long double rintl(long double x) { __asm__ ("frndint" : "+t"(x)); return x; }