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

9 lines
132 B
C
Raw Normal View History

2022-03-20 04:48:53 -04:00
#include <math.h>
long long llrintl(long double x)
{
long long r;
__asm__ ("fistpll %0" : "=m"(r) : "t"(x) : "st");
return r;
}