aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2009-06-05 16:20:25 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2009-06-05 16:20:25 +0000
commit26a347c575d81f9bd4fe27904f55150c9cfbb327 (patch)
tree0838738db151716477069c9bdee9e002cb818036 /gcc/builtins.c
parent9f706f23d133a3e4eb5130996461e5cfb2cb706a (diff)
downloadgcc-26a347c575d81f9bd4fe27904f55150c9cfbb327.zip
gcc-26a347c575d81f9bd4fe27904f55150c9cfbb327.tar.gz
gcc-26a347c575d81f9bd4fe27904f55150c9cfbb327.tar.bz2
builtins.c (do_mpc_ckconv, [...]): Use mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
* builtins.c (do_mpc_ckconv, do_mpc_arg1): Use mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM. fortran: * simplify.c (call_mpc_func): Use mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM. From-SVN: r148213
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r--gcc/builtins.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c
index 80ff09d..a555e4f 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -13216,21 +13216,21 @@ do_mpc_ckconv (mpc_srcptr m, tree type, int inexact)
/* Proceed iff we get a normal number, i.e. not NaN or Inf and no
overflow/underflow occurred. If -frounding-math, proceed iff the
result of calling FUNC was exact. */
- if (mpfr_number_p (MPC_RE (m)) && mpfr_number_p (MPC_IM (m))
+ if (mpfr_number_p (mpc_realref (m)) && mpfr_number_p (mpc_imagref (m))
&& !mpfr_overflow_p () && !mpfr_underflow_p ()
&& (!flag_rounding_math || !inexact))
{
REAL_VALUE_TYPE re, im;
- real_from_mpfr (&re, MPC_RE (m), type, GMP_RNDN);
- real_from_mpfr (&im, MPC_IM (m), type, GMP_RNDN);
+ real_from_mpfr (&re, mpc_realref (m), type, GMP_RNDN);
+ real_from_mpfr (&im, mpc_imagref (m), type, GMP_RNDN);
/* Proceed iff GCC's REAL_VALUE_TYPE can hold the MPFR values,
check for overflow/underflow. If the REAL_VALUE_TYPE is zero
but the mpft_t is not, then we underflowed in the
conversion. */
if (real_isfinite (&re) && real_isfinite (&im)
- && (re.cl == rvc_zero) == (mpfr_zero_p (MPC_RE (m)) != 0)
- && (im.cl == rvc_zero) == (mpfr_zero_p (MPC_IM (m)) != 0))
+ && (re.cl == rvc_zero) == (mpfr_zero_p (mpc_realref (m)) != 0)
+ && (im.cl == rvc_zero) == (mpfr_zero_p (mpc_imagref (m)) != 0))
{
REAL_VALUE_TYPE re_mode, im_mode;
@@ -13676,8 +13676,8 @@ do_mpc_arg1 (tree arg, tree type, int (*func)(mpc_ptr, mpc_srcptr, mpc_rnd_t))
mpc_t m;
mpc_init2 (m, prec);
- mpfr_from_real (MPC_RE(m), re, rnd);
- mpfr_from_real (MPC_IM(m), im, rnd);
+ mpfr_from_real (mpc_realref(m), re, rnd);
+ mpfr_from_real (mpc_imagref(m), im, rnd);
mpfr_clear_flags ();
inexact = func (m, m, crnd);
result = do_mpc_ckconv (m, type, inexact);