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

9 lines
114 B
C

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