[Gmp-commit] /var/hg/gmp: mpn/generic/toom42_mul.c: Tighter alloc.

mercurial at gmplib.org mercurial at gmplib.org
Mon Jun 9 03:31:48 UTC 2014


details:   /var/hg/gmp/rev/f0796f86c874
changeset: 16434:f0796f86c874
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Mon Jun 09 05:31:45 2014 +0200
description:
mpn/generic/toom42_mul.c: Tighter alloc.

diffstat:

 mpn/generic/toom42_mul.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 9e6d79072c16 -r f0796f86c874 mpn/generic/toom42_mul.c
--- a/mpn/generic/toom42_mul.c	Sun Jun 08 20:27:15 2014 +0200
+++ b/mpn/generic/toom42_mul.c	Mon Jun 09 05:31:45 2014 +0200
@@ -95,7 +95,7 @@
 
   TMP_MARK;
 
-  tmp = TMP_ALLOC_LIMBS (10 * (n + 1));
+  tmp = TMP_ALLOC_LIMBS (6 * n + 5);
   as1  = tmp; tmp += n + 1;
   asm1 = tmp; tmp += n + 1;
   as2  = tmp; tmp += n + 1;


More information about the gmp-commit mailing list