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