summaryrefslogblamecommitdiff
path: root/src/math/aarch64/lround.c
blob: 85656c78d1c334a1618b2fa606670ae8e1038c5b (plain) (tree)
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;
}