musl-tcc/src/math/x86_64/lrintf.c
2022-03-20 16:48:53 +08:00

9 lines
113 B
C

#include <math.h>
long lrintf(float x)
{
long r;
__asm__ ("cvtss2si %1, %0" : "=r"(r) : "x"(x));
return r;
}