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

9 lines
114 B
C

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