musl-tcc/src/math/aarch64/nearbyint.c

8 lines
110 B
C

#include <math.h>
double nearbyint(double x)
{
__asm__ ("frinti %d0, %d1" : "=w"(x) : "w"(x));
return x;
}