summaryrefslogtreecommitdiff
path: root/lib/libm/aarch64/lround.c
blob: a22e09704903ff0cc143900ebfc077e8d2e42061 (plain)
1
2
3
4
5
6
7
8
#include <math.h>

long lround(double x)
{
	long n;
	__asm__("fcvtas %x0, %d1" : "=r"(n) : "w"(x));
	return n;
}