diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2015-02-18 15:05:37 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2015-02-18 15:05:37 +0000 |
commit | 65a85ac3749f41a7c13783a97206190af42aa9eb (patch) | |
tree | d9c860e5a2638070a3eaf1adfb63ca3069ced873 | |
parent | 2a8457dfac726acd91c357fc21ae5ccd70b6d7e0 (diff) | |
download | mpfr-65a85ac3749f41a7c13783a97206190af42aa9eb.tar.gz |
[src/sum.c] More logging.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/new-sum@9289 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | src/sum.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -79,9 +79,9 @@ sum_raw (mp_limb_t *wp, mp_size_t ws, mpfr_ptr *const x, unsigned long n, MPFR_LOG_FUNC (("maxexp=%" MPFR_EXP_FSPEC "d " - "minexp=%" MPFR_EXP_FSPEC "d", - (mpfr_eexp_t) maxexp, - (mpfr_eexp_t) minexp), + "minexp=%" MPFR_EXP_FSPEC "d ws=%Pd ts=%Pd", + (mpfr_eexp_t) maxexp, (mpfr_eexp_t) minexp, + (mpfr_prec_t) ws, (mpfr_prec_t) ts), ("maxexp2=%" MPFR_EXP_FSPEC "d%s cancel=%Pd", (mpfr_eexp_t) maxexp2, maxexp2 == MPFR_EXP_MIN ? " (MPFR_EXP_MIN)" : @@ -356,6 +356,8 @@ sum_aux (mpfr_ptr sum, mpfr_ptr *const x, unsigned long n, mpfr_rnd_t rnd, wq = (mpfr_prec_t) ws * GMP_NUMB_BITS; MPFR_ASSERTD (wq - cq - sq >= 4); + MPFR_LOG_MSG (("cq=%d sq=%Pd logn=%d wq=%Pd\n", cq, sq, logn, wq)); + /* An input block will have up to wq - cq bits, and its shifted value (to be correctly aligned) may take GMP_NUMB_BITS - 1 additional bits. */ ts = MPFR_PREC2LIMBS (wq - cq + GMP_NUMB_BITS - 1); |