summaryrefslogblamecommitdiff
path: root/src/math/aarch64/llroundf.c
blob: 16699598ac65052379325c70afecce90f7d49409 (plain) (tree)
1
2
3
4
5
6
7
8







                                                       
#include <math.h>

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