diff options
author | Alexander Monakov <amonakov@ispras.ru> | 2020-01-14 14:53:38 +0300 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2020-03-24 16:31:36 -0400 |
commit | 51f4f8c512d682fe0c1a7a891909e75f416f20f6 (patch) | |
tree | 1d2d597d39a9604273a1d695f4ab7620f7e441a8 /src/math/x86_64/rintl.c | |
parent | 9443f1b5cfeba687f45b96572378519e81ff9a56 (diff) | |
download | musl-51f4f8c512d682fe0c1a7a891909e75f416f20f6.tar.gz musl-51f4f8c512d682fe0c1a7a891909e75f416f20f6.tar.bz2 musl-51f4f8c512d682fe0c1a7a891909e75f416f20f6.tar.xz musl-51f4f8c512d682fe0c1a7a891909e75f416f20f6.zip |
math: move x87-family rint functions to C with inline asm
Diffstat (limited to 'src/math/x86_64/rintl.c')
-rw-r--r-- | src/math/x86_64/rintl.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/math/x86_64/rintl.c b/src/math/x86_64/rintl.c new file mode 100644 index 00000000..e1a92077 --- /dev/null +++ b/src/math/x86_64/rintl.c @@ -0,0 +1,7 @@ +#include <math.h> + +long double rintl(long double x) +{ + __asm__ ("frndint" : "+t"(x)); + return x; +} |