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