diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2020-07-12 09:25:07 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2020-07-12 09:25:07 +0000 |
commit | 66a1282e4e7e96b71e2cfb45acc282a2040a7acb (patch) | |
tree | 39d6b05033785ad995eefec457d7e6a332b7bb78 /Build/source/libs/mpfr/mpfr-src/src/get_float128.c | |
parent | cffbc490ae11d44a67e8890a76086448ff67e76b (diff) |
mpfr-4.1.0
git-svn-id: svn://tug.org/texlive/trunk@55817 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/mpfr/mpfr-src/src/get_float128.c')
-rw-r--r-- | Build/source/libs/mpfr/mpfr-src/src/get_float128.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Build/source/libs/mpfr/mpfr-src/src/get_float128.c b/Build/source/libs/mpfr/mpfr-src/src/get_float128.c index e5bfc778984..981f9ca82b6 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/get_float128.c +++ b/Build/source/libs/mpfr/mpfr-src/src/get_float128.c @@ -1,7 +1,7 @@ /* mpfr_get_float128 -- convert a multiple precision floating-point - number to a __float128 number + number to a _Float128 number -Copyright 2012-2019 Free Software Foundation, Inc. +Copyright 2012-2020 Free Software Foundation, Inc. Contributed by the AriC and Caramba projects, INRIA. This file is part of the GNU MPFR Library. @@ -26,16 +26,16 @@ https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #ifdef MPFR_WANT_FLOAT128 /* generic code */ -__float128 +_Float128 mpfr_get_float128 (mpfr_srcptr x, mpfr_rnd_t rnd_mode) { if (MPFR_UNLIKELY (MPFR_IS_SINGULAR (x))) - return (__float128) mpfr_get_d (x, rnd_mode); + return (_Float128) mpfr_get_d (x, rnd_mode); else /* now x is a normal non-zero number */ { - __float128 r; /* result */ - __float128 m; + _Float128 r; /* result */ + _Float128 m; mpfr_exp_t e; /* exponent of x (before rounding) */ mpfr_exp_t sh; /* exponent shift, so that x/2^sh is in the double range */ const int emin = -16381; @@ -62,7 +62,7 @@ mpfr_get_float128 (mpfr_srcptr x, mpfr_rnd_t rnd_mode) MPFR_SAVE_EXPO_MARK (expo); - /* First round x to the target __float128 precision, taking the + /* First round x to the target _Float128 precision, taking the reduced precision of the subnormals into account, so that all subsequent operations are exact (this avoids double rounding problems). */ @@ -83,7 +83,7 @@ mpfr_get_float128 (mpfr_srcptr x, mpfr_rnd_t rnd_mode) always work if GMP_NUMB_BITS > IEEE_FLOAT128_MANT_DIG. MPFR_LIMB_HIGHBIT has the advantage to fit on 1 bit. */ r += yp[i]; - r *= 1 / (2 * (__float128) MPFR_LIMB_HIGHBIT); + r *= 1 / (2 * (_Float128) MPFR_LIMB_HIGHBIT); } mpfr_clear (y); |