[Gmp-commit] /var/hg/gmp: 2 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Sun Jun 8 15:13:51 UTC 2014


details:   /var/hg/gmp/rev/f1bf03401406
changeset: 16425:f1bf03401406
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Jun 08 17:13:23 2014 +0200
description:
Avoid TMP_SALLOC_LIMB.

details:   /var/hg/gmp/rev/7592f149cc3a
changeset: 16426:7592f149cc3a
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Jun 08 17:13:48 2014 +0200
description:
ChangeLog

diffstat:

 ChangeLog                  |  5 +++++
 mpn/generic/dcpi1_div_q.c  |  4 ++--
 mpn/generic/dcpi1_div_qr.c |  2 +-
 3 files changed, 8 insertions(+), 3 deletions(-)

diffs (42 lines):

diff -r d61e4d55d2ab -r 7592f149cc3a ChangeLog
--- a/ChangeLog	Sun Jun 08 11:08:26 2014 +0200
+++ b/ChangeLog	Sun Jun 08 17:13:48 2014 +0200
@@ -1,3 +1,8 @@
+2014-06-08  Torbjörn Granlund  <tege at gmplib.org>
+
+	* mpn/generic/dcpi1_div_q.c: Avoid TMP_SALLOC_LIMB.
+	* mpn/generic/dcpi1_div_qr.c: Likewise.
+
 2014-06-08 Marco Bodrato <bodrato at mail.dm.unipi.it>
 
 	* mpn/generic/mul.c: Tighter allocation in Toom{2,3}X branches.
diff -r d61e4d55d2ab -r 7592f149cc3a mpn/generic/dcpi1_div_q.c
--- a/mpn/generic/dcpi1_div_q.c	Sun Jun 08 11:08:26 2014 +0200
+++ b/mpn/generic/dcpi1_div_q.c	Sun Jun 08 17:13:48 2014 +0200
@@ -54,12 +54,12 @@
   ASSERT (nn - dn >= 3);
   ASSERT (dp[dn-1] & GMP_NUMB_HIGHBIT);
 
-  tp = TMP_SALLOC_LIMBS (nn + 1);
+  tp = TMP_ALLOC_LIMBS (nn + 1);
   MPN_COPY (tp + 1, np, nn);
   tp[0] = 0;
 
   qn = nn - dn;
-  wp = TMP_SALLOC_LIMBS (qn + 1);
+  wp = TMP_ALLOC_LIMBS (qn + 1);
 
   qh = mpn_dcpi1_divappr_q (wp, tp, nn + 1, dp, dn, dinv);
 
diff -r d61e4d55d2ab -r 7592f149cc3a mpn/generic/dcpi1_div_qr.c
--- a/mpn/generic/dcpi1_div_qr.c	Sun Jun 08 11:08:26 2014 +0200
+++ b/mpn/generic/dcpi1_div_qr.c	Sun Jun 08 17:13:48 2014 +0200
@@ -104,7 +104,7 @@
   ASSERT (nn - dn >= 3);	/* to adhere to mpn_sbpi1_div_qr's limits */
   ASSERT (dp[dn-1] & GMP_NUMB_HIGHBIT);
 
-  tp = TMP_SALLOC_LIMBS (dn);
+  tp = TMP_ALLOC_LIMBS (dn);
 
   qn = nn - dn;
   qp += qn;


More information about the gmp-commit mailing list