diff options
Diffstat (limited to 'Build/source/libs/mpfr/mpfr-src/src/fits_intmax.c')
-rw-r--r-- | Build/source/libs/mpfr/mpfr-src/src/fits_intmax.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Build/source/libs/mpfr/mpfr-src/src/fits_intmax.c b/Build/source/libs/mpfr/mpfr-src/src/fits_intmax.c index c5f7f6873c6..b00d2c37a2c 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/fits_intmax.c +++ b/Build/source/libs/mpfr/mpfr-src/src/fits_intmax.c @@ -1,6 +1,6 @@ /* mpfr_fits_intmax_p -- test whether an mpfr fits an intmax_t. -Copyright 2004, 2006-2019 Free Software Foundation, Inc. +Copyright 2004, 2006-2020 Free Software Foundation, Inc. Contributed by the AriC and Caramba projects, INRIA. This file is part of the GNU MPFR Library. @@ -20,11 +20,7 @@ along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - -#include "mpfr-intmax.h" +#define MPFR_NEED_INTMAX_H #include "mpfr-impl.h" #ifdef _MPFR_H_HAVE_INTMAX_T @@ -63,13 +59,13 @@ mpfr_fits_intmax_p (mpfr_srcptr f, mpfr_rnd_t rnd) { uintmax_t s; /* In C89, the division on negative integers isn't well-defined. */ - s = SAFE_ABS (uintmax_t, MPFR_INTMAX_MIN); + s = SAFE_ABS (uintmax_t, INTMAX_MIN); for (prec = 0; s != 0; s /= 2, prec ++); } else { intmax_t s; - s = MPFR_INTMAX_MAX; + s = INTMAX_MAX; for (prec = 0; s != 0; s /= 2, prec ++); } @@ -95,7 +91,7 @@ mpfr_fits_intmax_p (mpfr_srcptr f, mpfr_rnd_t rnd) if (neg) { mpfr_init2 (y, prec); - mpfr_set_sj (y, MPFR_INTMAX_MIN, MPFR_RNDN); + mpfr_set_sj (y, INTMAX_MIN, MPFR_RNDN); res = mpfr_cmp (x, y) >= 0; mpfr_clear (y); } |