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

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