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