summaryrefslogtreecommitdiff
path: root/lib/libm/aarch64/lroundf.c
blob: a823024b84fd32d11841ce39848d13c846de0621 (plain)
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;
}