Mercurial > hg > CbC > CbC_gcc
diff gcc/realmpfr.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line diff
--- a/gcc/realmpfr.c Thu Oct 25 07:37:49 2018 +0900 +++ b/gcc/realmpfr.c Thu Feb 13 11:34:05 2020 +0900 @@ -1,5 +1,5 @@ /* Conversion routines from GCC internal float representation to MPFR. - Copyright (C) 2010-2018 Free Software Foundation, Inc. + Copyright (C) 2010-2020 Free Software Foundation, Inc. This file is part of GCC. @@ -28,7 +28,7 @@ for initializing and clearing the MPFR parameter. */ void -mpfr_from_real (mpfr_ptr m, const REAL_VALUE_TYPE *r, mp_rnd_t rndmode) +mpfr_from_real (mpfr_ptr m, const REAL_VALUE_TYPE *r, mpfr_rnd_t rndmode) { /* We use a string as an intermediate type. */ char buf[128]; @@ -59,11 +59,11 @@ void real_from_mpfr (REAL_VALUE_TYPE *r, mpfr_srcptr m, const real_format *format, - mp_rnd_t rndmode) + mpfr_rnd_t rndmode) { /* We use a string as an intermediate type. */ char buf[128], *rstr; - mp_exp_t exp; + mpfr_exp_t exp; /* Take care of Infinity and NaN. */ if (mpfr_inf_p (m)) @@ -105,7 +105,8 @@ mode RNDMODE. TYPE is only relevant if M is a NaN. */ void -real_from_mpfr (REAL_VALUE_TYPE *r, mpfr_srcptr m, tree type, mp_rnd_t rndmode) +real_from_mpfr (REAL_VALUE_TYPE *r, mpfr_srcptr m, tree type, + mpfr_rnd_t rndmode) { real_from_mpfr (r, m, type ? REAL_MODE_FORMAT (TYPE_MODE (type)) : NULL, rndmode);