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






                                                       
#include <math.h>

double trunc(double x)
{
	__asm__ ("frintz %d0, %d1" : "=w"(x) : "w"(x));
	return x;
}