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

11 lines
140 B
C
Raw Normal View History

2022-03-20 08:48:53 +00:00
#include <math.h>
long lrintf(float x)
{
long n;
__asm__ (
"frintx %s1, %s1\n"
"fcvtzs %x0, %s1\n" : "=r"(n), "+w"(x));
return n;
}