From bab66428bee6736e2cf5e3bf0a6c749a2d479c40 Mon Sep 17 00:00:00 2001 From: vlefevre Date: Thu, 27 Oct 2016 12:30:01 +0000 Subject: [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 --- src/sum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sum.c') 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. */ -- cgit v1.2.1