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