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

9 lines
113 B
C
Raw Normal View History

2022-03-20 04:48:53 -04:00
#include <math.h>
long lrint(double x)
{
long r;
__asm__ ("cvtsd2si %1, %0" : "=r"(r) : "x"(x));
return r;
}