1 2 3 4 5 6 7 8 9 10
#include <math.h> long long llrintf(float x) { long long n; __asm__ ( "frintx %s1, %s1\n" "fcvtzs %x0, %s1\n" : "=r"(n), "+w"(x)); return n; }