math: move x87-family lrint functions to C with inline asm
[musl] / src / math / i386 / llrintf.c
1 #include <math.h>
2
3 long long llrintf(float x)
4 {
5         long long r;
6         __asm__ ("fistpll %0" : "=m"(r) : "t"(x) : "st");
7         return r;
8 }