summaryrefslogtreecommitdiff
path: root/src/math/aarch64/lroundf.c
blob: 32e51f3cc3c738214bde60d0873532415cdd4acc (plain) (blame)
1
2
3
4
5
6
7
8
#include <math.h>

long lroundf(float x)
{
	long n;
	__asm__ ("fcvtas %x0, %s1" : "=r"(n) : "w"(x));
	return n;
}