[Gmp-commit] /home/hgfiles/gmp: 2 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Thu Dec 3 21:17:13 CET 2009


details:   /home/hgfiles/gmp/rev/772518542336
changeset: 12972:772518542336
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Dec 03 21:16:44 2009 +0100
description:
Add a TMP_FREE.

details:   /home/hgfiles/gmp/rev/03cf49081a7b
changeset: 12973:03cf49081a7b
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Dec 03 21:17:10 2009 +0100
description:
Spacing cleanup.

diffstat:

 ChangeLog                        |  4 ++++
 mpn/generic/gcdext.c             |  3 ++-
 mpn/generic/gcdext_lehmer.c      |  2 +-
 mpn/generic/gcdext_subdiv_step.c |  2 +-
 mpn/generic/toom_eval_pm2.c      |  2 +-
 5 files changed, 9 insertions(+), 4 deletions(-)

diffs (60 lines):

diff -r f48329882a7b -r 03cf49081a7b ChangeLog
--- a/ChangeLog	Thu Dec 03 19:13:46 2009 +0100
+++ b/ChangeLog	Thu Dec 03 21:17:10 2009 +0100
@@ -1,3 +1,7 @@
+2009-12-03  Torbjorn Granlund  <tege at gmplib.org>
+
+	* mpn/generic/gcdext.c: Add a TMP_FREE.
+
 2009-12-03  Niels Möller  <nisse at lysator.liu.se>
 
 	* mpn/generic/gcdext_lehmer.c (mpn_gcdext_lehmer_n): Handle v == 0
diff -r f48329882a7b -r 03cf49081a7b mpn/generic/gcdext.c
--- a/mpn/generic/gcdext.c	Thu Dec 03 19:13:46 2009 +0100
+++ b/mpn/generic/gcdext.c	Thu Dec 03 21:17:10 2009 +0100
@@ -410,7 +410,8 @@
 	  *usizep = un;
 	}
 
-      return n;      
+      TMP_FREE;
+      return n;
     }
   else if (mpn_zero_p (u0, un))
     {
diff -r f48329882a7b -r 03cf49081a7b mpn/generic/gcdext_lehmer.c
--- a/mpn/generic/gcdext_lehmer.c	Thu Dec 03 19:13:46 2009 +0100
+++ b/mpn/generic/gcdext_lehmer.c	Thu Dec 03 21:17:10 2009 +0100
@@ -157,7 +157,7 @@
       int negate;
 
       gp[0] = mpn_gcdext_1 (&u, &v, ap[0], bp[0]);
-      
+
       /* Set up = u u1 - v u0. Keep track of size, un grows by one or
 	 two limbs. */
 
diff -r f48329882a7b -r 03cf49081a7b mpn/generic/gcdext_subdiv_step.c
--- a/mpn/generic/gcdext_subdiv_step.c	Thu Dec 03 19:13:46 2009 +0100
+++ b/mpn/generic/gcdext_subdiv_step.c	Thu Dec 03 21:17:10 2009 +0100
@@ -115,7 +115,7 @@
 	  else
 	    {
 	      MPN_NORMALIZE_NOT_ZERO (u1, un);
-	      MPN_COPY (up, u1, un);	      
+	      MPN_COPY (up, u1, un);
 	    }
 
 	  *usizep = swapped ? -un : un;
diff -r f48329882a7b -r 03cf49081a7b mpn/generic/toom_eval_pm2.c
--- a/mpn/generic/toom_eval_pm2.c	Thu Dec 03 19:13:46 2009 +0100
+++ b/mpn/generic/toom_eval_pm2.c	Thu Dec 03 21:17:10 2009 +0100
@@ -29,7 +29,7 @@
 
 /* Evaluates a polynomial of degree k > 3, in the points +2 and -2. */
 int
-mpn_toom_eval_pm2 (mp_ptr xp2, mp_ptr xm2, unsigned k, 
+mpn_toom_eval_pm2 (mp_ptr xp2, mp_ptr xm2, unsigned k,
 		   mp_srcptr xp, mp_size_t n, mp_size_t hn, mp_ptr tp)
 {
   unsigned i;


More information about the gmp-commit mailing list