[Gmp-commit] /var/hg/gmp: Remove unused variables.

mercurial at gmplib.org mercurial at gmplib.org
Sat Mar 3 16:08:40 CET 2012


details:   /var/hg/gmp/rev/475c4c20ca22
changeset: 14716:475c4c20ca22
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sat Mar 03 16:08:37 2012 +0100
description:
Remove unused variables.

diffstat:

 ChangeLog                 |  7 +++++++
 mpn/generic/hgcd_jacobi.c |  2 --
 mpn/generic/hgcd_reduce.c |  2 --
 mpn/generic/hgcd_step.c   |  2 --
 mpn/generic/mu_bdiv_qr.c  |  2 --
 mpz/jacobi.c              |  5 ++---
 mpz/powm_sec.c            |  1 -
 mpz/xor.c                 |  1 -
 8 files changed, 9 insertions(+), 13 deletions(-)

diffs (105 lines):

diff -r 875d6f52774c -r 475c4c20ca22 ChangeLog
--- a/ChangeLog	Sat Mar 03 15:57:36 2012 +0100
+++ b/ChangeLog	Sat Mar 03 16:08:37 2012 +0100
@@ -1,5 +1,12 @@
 2012-03-03  Torbjorn Granlund  <tege at gmplib.org>
 
+	* mpn/generic/hgcd_step.c (mpn_hgcd_step): Remove unused variables.
+	* mpn/generic/hgcd_jacobi.c (hgcd_jacobi_step): Likewise.
+	* mpn/generic/hgcd_reduce.c (hgcd_matrix_apply): Likewise.
+	* mpn/generic/mu_bdiv_qr.c: Likewise.
+	* mpz/jacobi.c: Likewise.
+	* mpz/mod.c: Likewise.
+
 	* mpn/generic/toom42_mul.c: Remove unread variable.
 	* mpn/generic/set_str.c (mpn_set_str_compute_powtab): Likewise.
 	* mpn/generic/rootrem.c (mpn_rootrem_internal): Likewise.
diff -r 875d6f52774c -r 475c4c20ca22 mpn/generic/hgcd_jacobi.c
--- a/mpn/generic/hgcd_jacobi.c	Sat Mar 03 15:57:36 2012 +0100
+++ b/mpn/generic/hgcd_jacobi.c	Sat Mar 03 16:08:37 2012 +0100
@@ -78,8 +78,6 @@
   struct hgcd_matrix1 M1;
   mp_limb_t mask;
   mp_limb_t ah, al, bh, bl;
-  mp_size_t an, bn, qn;
-  int col;
 
   ASSERT (n > s);
 
diff -r 875d6f52774c -r 475c4c20ca22 mpn/generic/hgcd_reduce.c
--- a/mpn/generic/hgcd_reduce.c	Sat Mar 03 15:57:36 2012 +0100
+++ b/mpn/generic/hgcd_reduce.c	Sat Mar 03 16:08:37 2012 +0100
@@ -101,8 +101,6 @@
 
   if (mn[0][1] == 0)
     {
-      mp_size_t qn;
-
       /* A unchanged, M = (1, 0; q, 1) */
       ASSERT (mn[0][0] == 1);
       ASSERT (M->p[0][0][0] == 1);
diff -r 875d6f52774c -r 475c4c20ca22 mpn/generic/hgcd_step.c
--- a/mpn/generic/hgcd_step.c	Sat Mar 03 15:57:36 2012 +0100
+++ b/mpn/generic/hgcd_step.c	Sat Mar 03 16:08:37 2012 +0100
@@ -69,8 +69,6 @@
   struct hgcd_matrix1 M1;
   mp_limb_t mask;
   mp_limb_t ah, al, bh, bl;
-  mp_size_t an, bn, qn;
-  int col;
 
   ASSERT (n > s);
 
diff -r 875d6f52774c -r 475c4c20ca22 mpn/generic/mu_bdiv_qr.c
--- a/mpn/generic/mu_bdiv_qr.c	Sat Mar 03 15:57:36 2012 +0100
+++ b/mpn/generic/mu_bdiv_qr.c	Sat Mar 03 16:08:37 2012 +0100
@@ -64,9 +64,7 @@
   mp_size_t qn;
   mp_size_t in;
   mp_limb_t cy, c0;
-  int k;
   mp_size_t tn, wn;
-  mp_size_t i;
 
   qn = nn - dn;
 
diff -r 875d6f52774c -r 475c4c20ca22 mpz/jacobi.c
--- a/mpz/jacobi.c	Sat Mar 03 15:57:36 2012 +0100
+++ b/mpz/jacobi.c	Sat Mar 03 16:08:37 2012 +0100
@@ -48,12 +48,11 @@
 mpz_jacobi (mpz_srcptr a, mpz_srcptr b)
 {
   mp_srcptr  asrcp, bsrcp;
-  mp_size_t  asize, bsize, n, itch;
+  mp_size_t  asize, bsize;
   mp_limb_t  alow, blow;
-  mp_ptr     ap, bp, scratch;
+  mp_ptr     ap, bp;
   unsigned   btwos;
   int        result_bit1;
-  unsigned   bits;
   int        res;
   TMP_DECL;
 
diff -r 875d6f52774c -r 475c4c20ca22 mpz/powm_sec.c
--- a/mpz/powm_sec.c	Sat Mar 03 15:57:36 2012 +0100
+++ b/mpz/powm_sec.c	Sat Mar 03 16:08:37 2012 +0100
@@ -46,7 +46,6 @@
   es = SIZ(e);
   if (UNLIKELY (es <= 0))
     {
-      mpz_t new_b;
       if (es == 0)
 	{
 	  /* b^0 mod m,  b is anything and m is non-zero.
diff -r 875d6f52774c -r 475c4c20ca22 mpz/xor.c
--- a/mpz/xor.c	Sat Mar 03 15:57:36 2012 +0100
+++ b/mpz/xor.c	Sat Mar 03 16:08:37 2012 +0100
@@ -28,7 +28,6 @@
   mp_size_t op1_size, op2_size;
   mp_ptr res_ptr;
   mp_size_t res_size, res_alloc;
-  mp_size_t i;
   TMP_DECL;
 
   TMP_MARK;


More information about the gmp-commit mailing list