diff options
Diffstat (limited to 'src/mul_2exp.c')
-rw-r--r-- | src/mul_2exp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mul_2exp.c b/src/mul_2exp.c index b32001f..ff2efe2 100644 --- a/src/mul_2exp.c +++ b/src/mul_2exp.c @@ -1,6 +1,6 @@ /* mpc_mul_2exp -- Multiply a complex number by 2^e. -Copyright (C) 2002, 2009 INRIA +Copyright (C) 2002, 2009, 2011 INRIA This file is part of GNU MPC. @@ -25,8 +25,8 @@ mpc_mul_2exp (mpc_ptr a, mpc_srcptr b, unsigned long int c, mpc_rnd_t rnd) { int inex_re, inex_im; - inex_re = mpfr_mul_2exp (MPC_RE(a), MPC_RE(b), c, MPC_RND_RE(rnd)); - inex_im = mpfr_mul_2exp (MPC_IM(a), MPC_IM(b), c, MPC_RND_IM(rnd)); + inex_re = mpfr_mul_2exp (mpc_realref(a), mpc_realref(b), c, MPC_RND_RE(rnd)); + inex_im = mpfr_mul_2exp (mpc_imagref(a), mpc_imagref(b), c, MPC_RND_IM(rnd)); return MPC_INEX(inex_re, inex_im); } |