xref: /aosp_15_r20/external/musl/src/math/i386/lrintl.c (revision c9945492fdd68bbe62686c5b452b4dc1be3f8453)
1 #include <math.h>
2 
lrintl(long double x)3 long lrintl(long double x)
4 {
5 	long r;
6 	__asm__ ("fistpl %0" : "=m"(r) : "t"(x) : "st");
7 	return r;
8 }
9