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