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

mercurial at gmplib.org mercurial at gmplib.org
Fri Dec 18 12:15:07 CET 2009


details:   /home/hgfiles/gmp/rev/2adbddc744ec
changeset: 13126:2adbddc744ec
user:      Niels M?ller <nisse at lysator.liu.se>
date:      Fri Dec 18 12:12:44 2009 +0100
description:
Moved a declaration to avoid a compiler warning.

details:   /home/hgfiles/gmp/rev/622f9d47a9e4
changeset: 13127:622f9d47a9e4
user:      Niels M?ller <nisse at lysator.liu.se>
date:      Fri Dec 18 12:15:02 2009 +0100
description:
Deleted unused variables.

diffstat:

 ChangeLog                |  7 +++++++
 mpn/generic/bdiv_q_1.c   |  2 --
 mpn/generic/toom52_mul.c |  3 ++-
 3 files changed, 9 insertions(+), 3 deletions(-)

diffs (48 lines):

diff -r 664fd27fa9ae -r 622f9d47a9e4 ChangeLog
--- a/ChangeLog	Fri Dec 18 12:10:22 2009 +0100
+++ b/ChangeLog	Fri Dec 18 12:15:02 2009 +0100
@@ -1,5 +1,12 @@
 2009-12-18  Niels Möller  <nisse at lysator.liu.se>
 
+	* mpn/generic/bdiv_q_1.c (mpn_bdiv_q_1): Deleted some unused
+	variables.
+
+	* mpn/generic/toom52_mul.c (mpn_toom52_mul)
+	[HAVE_NATIVE_mpn_add_n_sub_n]: Moved declaration of cy to avoid a
+	compiler warning.
+
 	* gmp-impl.h (gmp_pi1_t): Eliminated inv21 member.
 	(invert_pi1): ...and don't store it here.
 
diff -r 664fd27fa9ae -r 622f9d47a9e4 mpn/generic/bdiv_q_1.c
--- a/mpn/generic/bdiv_q_1.c	Fri Dec 18 12:10:22 2009 +0100
+++ b/mpn/generic/bdiv_q_1.c	Fri Dec 18 12:15:02 2009 +0100
@@ -93,8 +93,6 @@
 mp_limb_t
 mpn_bdiv_q_1 (mp_ptr rp, mp_srcptr up, mp_size_t n, mp_limb_t d)
 {
-  mp_size_t  i;
-  mp_limb_t  c, h, l, u, u_next, dummy;
   mp_limb_t di;
   int shift;
 
diff -r 664fd27fa9ae -r 622f9d47a9e4 mpn/generic/toom52_mul.c
--- a/mpn/generic/toom52_mul.c	Fri Dec 18 12:10:22 2009 +0100
+++ b/mpn/generic/toom52_mul.c	Fri Dec 18 12:15:02 2009 +0100
@@ -58,7 +58,6 @@
 {
   mp_size_t n, s, t;
   enum toom6_flags flags;
-  mp_limb_t cy;
 
 #define a0  ap
 #define a1  (ap + n)
@@ -109,6 +108,8 @@
   if (t == n)
     {
 #if HAVE_NATIVE_mpn_add_n_sub_n
+      mp_limb_t cy;
+
       if (mpn_cmp (b0, b1, n) < 0)
 	{
 	  cy = mpn_add_n_sub_n (bs1, bsm1, b1, b0, n);


More information about the gmp-commit mailing list