github.com/afumu/libc@v0.0.6/musl/src/math/i386/lrintl.c (about)

     1  #include <math.h>
     2  
     3  long lrintl(long double x)
     4  {
     5  	long r;
     6  	__asm__ ("fistpl %0" : "=m"(r) : "t"(x) : "st");
     7  	return r;
     8  }