xref: /haiku/src/system/libroot/posix/musl/math/arm64/lroundf.c (revision 25f1ddecf7c81f9fd03fbd9463aa6566b8d01fc4)
1 #include <math.h>
2 
3 long lroundf(float x)
4 {
5 	long n;
6 	__asm__ ("fcvtas %x0, %s1" : "=r"(n) : "w"(x));
7 	return n;
8 }
9