xref: /haiku/src/system/libroot/posix/musl/math/arm64/trunc.c (revision 6a2d53e7237764eab0c7b6d121772f26d636fb60)
1 #include <math.h>
2 
3 double trunc(double x)
4 {
5 	__asm__ ("frintz %d0, %d1" : "=w"(x) : "w"(x));
6 	return x;
7 }
8