summaryrefslogtreecommitdiff
path: root/src/sum.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-10-27 12:30:01 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-10-27 12:30:01 +0000
commitbab66428bee6736e2cf5e3bf0a6c749a2d479c40 (patch)
tree52bca49bb1dab38ed32a4febe2e8b0df76036376 /src/sum.c
parent334c09a8fa837e665294af8a4b30fc8edd37af1e (diff)
downloadmpfr-bab66428bee6736e2cf5e3bf0a6c749a2d479c40.tar.gz
[src/sum.c] Changed a MPN_COPY_DECR to MPN_COPY, which may be more
efficient: as of r10464 (support for reused arguments), the memory used by the accumulator for the TMD resolution is no longer a part of the main accumulator, so that we now know that the memory blocks do not overlap. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10925 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/sum.c')
-rw-r--r--src/sum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sum.c b/src/sum.c
index 0fd6a4a2e..73532778b 100644
--- a/src/sum.c
+++ b/src/sum.c
@@ -934,7 +934,7 @@ sum_aux (mpfr_ptr sum, mpfr_ptr *const x, unsigned long n, mpfr_rnd_t rnd,
zz = zs - wi;
MPFR_ASSERTD (zz >= 0 && zz < zs);
if (zz > 0)
- MPN_COPY_DECR (zp + zz, wp, wi);
+ MPN_COPY (zp + zz, wp, wi);
}
/* Compute minexp2 = minexp - (zs * GMP_NUMB_BITS + td) safely. */