math: move x87-family rint functions to C with inline asm
[musl] / src / math / i386 / rint.c
1 #include <math.h>
2
3 double rint(double x)
4 {
5         __asm__ ("frndint" : "+t"(x));
6         return x;
7 }