xref: /haiku/src/system/libroot/posix/musl/math/arm64/truncf.c (revision 9918c8295480d70f55fafb98008e23109b598871)
1 #include <math.h>
2 
3 float truncf(float x)
4 {
5 	__asm__ ("frintz %s0, %s1" : "=w"(x) : "w"(x));
6 	return x;
7 }
8