xref: /haiku/src/system/libroot/posix/musl/math/arm64/nearbyintf.c (revision 4e151bc3093293a8ab47aeae854dc80d04e9b41f)
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