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

9 lines
114 B
C
Raw Normal View History

2022-04-14 07:49:55 +00:00
#include <math.h>
long lrint(double x)
{
long r;
__asm__ ("fistpl %0" : "=m"(r) : "t"(x) : "st");
return r;
}