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

mercurial at gmplib.org mercurial at gmplib.org
Fri Oct 14 15:56:37 CEST 2011


details:   /var/hg/gmp/rev/78ff78ef4633
changeset: 14327:78ff78ef4633
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Fri Oct 14 15:54:45 2011 +0200
description:
>From Per Olofsson: Add __GMP_NOTHROW to make it match gmp.h.

details:   /var/hg/gmp/rev/f984d6d9f5bb
changeset: 14328:f984d6d9f5bb
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Fri Oct 14 15:56:27 2011 +0200
description:
Separate declarations and initialisers for the benefit of C++.

details:   /var/hg/gmp/rev/e0f40ad5e507
changeset: 14329:e0f40ad5e507
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Fri Oct 14 15:56:34 2011 +0200
description:
*** empty log message ***

diffstat:

 ChangeLog            |  5 +++++
 mpn/generic/gcd_1.c  |  7 +++++--
 mpn/generic/popham.c |  2 +-
 3 files changed, 11 insertions(+), 3 deletions(-)

diffs (43 lines):

diff -r 28736d78f3c4 -r e0f40ad5e507 ChangeLog
--- a/ChangeLog	Fri Oct 14 13:37:04 2011 +0200
+++ b/ChangeLog	Fri Oct 14 15:56:34 2011 +0200
@@ -1,5 +1,10 @@
 2011-10-14  Torbjorn Granlund  <tege at gmplib.org>
 
+	From Per Olofsson:
+	* mpn/generic/popham.c: Add __GMP_NOTHROW to make it match gmp.h.
+	* mpn/generic/gcd_1.c: Separate declarations and initialisers for the
+	benefit of C++.
+
 	* configure.in: AC_DEFINE HAVE_HOST_CPU_s390_zarch.
 	* longlong.h (s390): Use it.
 	(s390 umul_ppmm): Fix typo in pure C variant.
diff -r 28736d78f3c4 -r e0f40ad5e507 mpn/generic/gcd_1.c
--- a/mpn/generic/gcd_1.c	Fri Oct 14 13:37:04 2011 +0200
+++ b/mpn/generic/gcd_1.c	Fri Oct 14 15:56:34 2011 +0200
@@ -133,8 +133,11 @@
   while (ulimb != vlimb)
     {
       int c;
-      mp_limb_t t = ulimb - vlimb;
-      mp_limb_t vgtu = LIMB_HIGHBIT_TO_MASK (t);
+      mp_limb_t t;
+      mp_limb_t vgtu;
+
+      t = ulimb - vlimb;
+      vgtu = LIMB_HIGHBIT_TO_MASK (t);
 
       /* v <-- min (u, v) */
       vlimb += (vgtu & t);
diff -r 28736d78f3c4 -r e0f40ad5e507 mpn/generic/popham.c
--- a/mpn/generic/popham.c	Fri Oct 14 13:37:04 2011 +0200
+++ b/mpn/generic/popham.c	Fri Oct 14 15:56:34 2011 +0200
@@ -35,7 +35,7 @@
 #if OPERATION_hamdist
        mp_srcptr vp,
 #endif
-       mp_size_t n)
+       mp_size_t n) __GMP_NOTHROW
 {
   mp_bitcnt_t result = 0;
   mp_limb_t p0, p1, p2, p3, x, p01, p23;


More information about the gmp-commit mailing list