summaryrefslogblamecommitdiff
path: root/src/math/aarch64/truncf.c
blob: 20ef30f12847066deb234663592411324883250c (plain) (tree)
1
2
3
4
5
6
7






                                                       
#include <math.h>

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