summaryrefslogtreecommitdiff
path: root/src/div_fr.c
diff options
context:
space:
mode:
authorenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2010-07-30 15:35:43 +0000
committerenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2010-07-30 15:35:43 +0000
commit77a6d6e0f8dd1b3cabe40f7a3b90cc2423a4b6d8 (patch)
treec613656dd08c8a0aaa9d463f23cf1f98ecc0623d /src/div_fr.c
parentf5e44f7b814899e0c8a01cf4803e99c37de9fecb (diff)
downloadmpc-77a6d6e0f8dd1b3cabe40f7a3b90cc2423a4b6d8.tar.gz
code cleanup:
removed macro MPFR_PREC from mpc-impl.h replaced MPFR_PREC (MPC_RE (op)) by MPC_PREC_RE (op) and MPFR_PREC (MPC_IM (op)) by MPC_PREC_IM (op) git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@814 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'src/div_fr.c')
-rw-r--r--src/div_fr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/div_fr.c b/src/div_fr.c
index 12f1527..3e0a3c0 100644
--- a/src/div_fr.c
+++ b/src/div_fr.c
@@ -1,6 +1,6 @@
/* mpc_div_fr -- Divide a complex number by a floating-point number.
-Copyright (C) 2002, 2008, 2009 Andreas Enge, Paul Zimmermann, Philippe Th\'eveny
+Copyright (C) 2002, 2008, 2009, 2010 Andreas Enge, Paul Zimmermann, Philippe Th\'eveny
This file is part of the MPC Library.
@@ -28,7 +28,7 @@ mpc_div_fr (mpc_ptr a, mpc_srcptr b, mpfr_srcptr c, mpc_rnd_t rnd)
mpfr_t real;
/* We have to use temporary variable in case c=MPC_RE (a). */
- mpfr_init2 (real, MPFR_PREC (MPC_RE (a)));
+ mpfr_init2 (real, MPC_PREC_RE (a));
inex_re = mpfr_div (real, MPC_RE(b), c, MPC_RND_RE(rnd));
inex_im = mpfr_div (MPC_IM(a), MPC_IM(b), c, MPC_RND_IM(rnd));