musl-tcc/src/math/i386/llrint.c

9 lines
126 B
C

#include <math.h>
long long llrint(double x)
{
long long r;
__asm__ ("fistpll %0" : "=m"(r) : "t"(x) : "st");
return r;
}