math: move x87-family rint functions to C with inline asm
[musl] / src / math / i386 / lrintl.c
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 }