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