summaryrefslogblamecommitdiff
path: root/src/math/aarch64/roundf.c
blob: 91637eaa1204ad92c451722b87c972231ecf55af (plain) (tree)
1
2
3
4
5
6
7






                                                       
#include <math.h>

float roundf(float x)
{
	__asm__ ("frinta %s0, %s1" : "=w"(x) : "w"(x));
	return x;
}