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

mercurial at gmplib.org mercurial at gmplib.org
Wed Nov 28 00:43:39 CET 2012


details:   /var/hg/gmp/rev/0e618ea8b690
changeset: 15145:0e618ea8b690
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Wed Nov 28 00:43:23 2012 +0100
description:
Move new_b out since it lives on through b.

details:   /var/hg/gmp/rev/9225ab50f0d0
changeset: 15146:9225ab50f0d0
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Wed Nov 28 00:43:31 2012 +0100
description:
*** empty log message ***

diffstat:

 ChangeLog  |  2 ++
 mpz/powm.c |  2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r c7b88ed68ca7 -r 9225ab50f0d0 ChangeLog
--- a/ChangeLog	Wed Nov 28 00:06:54 2012 +0100
+++ b/ChangeLog	Wed Nov 28 00:43:31 2012 +0100
@@ -1,5 +1,7 @@
 2012-11-28  Torbjorn Granlund  <tege at gmplib.org>
 
+	* mpz/powm.c: Move new_b out since it lives on through b.
+
 	* configure.in (arm*-*-*): Pass -marm to deal with compilers defaulting
 	to thumb code.
 
diff -r c7b88ed68ca7 -r 9225ab50f0d0 mpz/powm.c
--- a/mpz/powm.c	Wed Nov 28 00:06:54 2012 +0100
+++ b/mpz/powm.c	Wed Nov 28 00:43:31 2012 +0100
@@ -56,6 +56,7 @@
   mp_ptr rp, tp;
   mp_srcptr bp, ep, mp;
   mp_size_t rn, bn, es, en, itch;
+  mpz_t new_b;			/* note: value lives long via 'b' */
   TMP_DECL;
 
   n = ABSIZ(m);
@@ -69,7 +70,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.


More information about the gmp-commit mailing list