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

mercurial at gmplib.org mercurial at gmplib.org
Wed May 20 03:54:12 UTC 2015


details:   /var/hg/gmp/rev/52f18ecbd2d4
changeset: 16642:52f18ecbd2d4
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Wed May 20 05:48:27 2015 +0200
description:
Remove unused variables

details:   /var/hg/gmp/rev/4f72b35215d8
changeset: 16643:4f72b35215d8
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Wed May 20 05:49:10 2015 +0200
description:
Rename a dummy variable

details:   /var/hg/gmp/rev/8e5b87ad9af5
changeset: 16644:8e5b87ad9af5
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Wed May 20 05:50:31 2015 +0200
description:
gmp-h.in: Unconditionally define mpn_com prototype

details:   /var/hg/gmp/rev/c92a25cae611
changeset: 16645:c92a25cae611
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Wed May 20 05:54:07 2015 +0200
description:
ChangeLog

diffstat:

 ChangeLog                   |  1 +
 gmp-h.in                    |  2 --
 gmp-impl.h                  |  4 ++--
 mini-gmp/tests/t-limbs.c    |  2 +-
 mpn/generic/perfpow.c       |  1 -
 tests/mpn/toom-sqr-shared.h |  2 --
 6 files changed, 4 insertions(+), 8 deletions(-)

diffs (73 lines):

diff -r 97f80e225d7a -r c92a25cae611 ChangeLog
--- a/ChangeLog	Tue May 19 08:22:50 2015 +0200
+++ b/ChangeLog	Wed May 20 05:54:07 2015 +0200
@@ -1,6 +1,7 @@
 2015-05-18 Marco Bodrato <bodrato at mail.dm.unipi.it>
 
 	* gmp-h.in (mpn_neg): Niels' code using mpn_neg.
+	* gmp-h.in (mpn_com): Ubconditionaly declare prototype.
 
 2015-05-17  Torbjörn Granlund  <torbjorng at google.com>
 
diff -r 97f80e225d7a -r c92a25cae611 gmp-h.in
--- a/gmp-h.in	Tue May 19 08:22:50 2015 +0200
+++ b/gmp-h.in	Wed May 20 05:54:07 2015 +0200
@@ -1544,9 +1544,7 @@
 #endif
 
 #define mpn_com __MPN(com)
-#if __GMP_INLINE_PROTOTYPES || defined (__GMP_FORCE_mpn_com)
 __GMP_DECLSPEC void mpn_com (mp_ptr, mp_srcptr, mp_size_t);
-#endif
 
 #define mpn_perfect_square_p __MPN(perfect_square_p)
 __GMP_DECLSPEC int mpn_perfect_square_p (mp_srcptr, mp_size_t) __GMP_ATTRIBUTE_PURE;
diff -r 97f80e225d7a -r c92a25cae611 gmp-impl.h
--- a/gmp-impl.h	Tue May 19 08:22:50 2015 +0200
+++ b/gmp-impl.h	Wed May 20 05:54:07 2015 +0200
@@ -4294,8 +4294,8 @@
    down.  */
 #define DIGITS_IN_BASE_PER_LIMB(res, nlimbs, b)				\
   do {									\
-    mp_limb_t _ph, _pl;							\
-    umul_ppmm (_ph, _pl,						\
+    mp_limb_t _ph, _dummy;						\
+    umul_ppmm (_ph, _dummy,						\
 	       mp_bases[b].logb2, GMP_NUMB_BITS * (mp_limb_t) (nlimbs));\
     res = _ph;								\
   } while (0)
diff -r 97f80e225d7a -r c92a25cae611 mini-gmp/tests/t-limbs.c
--- a/mini-gmp/tests/t-limbs.c	Tue May 19 08:22:50 2015 +0200
+++ b/mini-gmp/tests/t-limbs.c	Wed May 20 05:54:07 2015 +0200
@@ -55,7 +55,7 @@
 testmain (int argc, char **argv)
 {
   unsigned i;
-  mpz_t a, b, t, res, ref;
+  mpz_t a, b, res, ref;
 
   mpz_init (a);
   mpz_init (b);
diff -r 97f80e225d7a -r c92a25cae611 mpn/generic/perfpow.c
--- a/mpn/generic/perfpow.c	Tue May 19 08:22:50 2015 +0200
+++ b/mpn/generic/perfpow.c	Wed May 20 05:54:07 2015 +0200
@@ -173,7 +173,6 @@
   int ans;
   mp_bitcnt_t b;
   gmp_primesieve_t ps;
-  mp_ptr tmp;
   TMP_DECL;
 
   ASSERT (n > 0);
diff -r 97f80e225d7a -r c92a25cae611 tests/mpn/toom-sqr-shared.h
--- a/tests/mpn/toom-sqr-shared.h	Tue May 19 08:22:50 2015 +0200
+++ b/tests/mpn/toom-sqr-shared.h	Wed May 20 05:54:07 2015 +0200
@@ -66,8 +66,6 @@
 
     for (test = 0; test < count; test++)
       {
-	unsigned size_min;
-	unsigned size_range;
 	mp_size_t an;
 	mp_size_t itch;
 	mp_limb_t p_before, p_after, s_before, s_after;


More information about the gmp-commit mailing list