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

9 lines
124 B
C
Raw Normal View History

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