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

mercurial at gmplib.org mercurial at gmplib.org
Tue Dec 15 23:33:29 CET 2009


details:   /home/hgfiles/gmp/rev/275f8033e99b
changeset: 13083:275f8033e99b
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Tue Dec 15 20:52:06 2009 +0100
description:
Get an ASSERT right.

details:   /home/hgfiles/gmp/rev/716b4fb9bc78
changeset: 13084:716b4fb9bc78
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Tue Dec 15 20:53:19 2009 +0100
description:
Cleanup spacing.

details:   /home/hgfiles/gmp/rev/885fdc5a0175
changeset: 13085:885fdc5a0175
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Tue Dec 15 23:32:58 2009 +0100
description:
Trivial merge.

diffstat:

 ChangeLog                        |  9 +++++++++
 mpn/generic/gcdext_subdiv_step.c |  2 +-
 mpn/generic/sbpi1_div_qr.c       |  2 +-
 tune/Makefile.am                 |  2 +-
 4 files changed, 12 insertions(+), 3 deletions(-)

diffs (52 lines):

diff -r 28d3f5d47fad -r 885fdc5a0175 ChangeLog
--- a/ChangeLog	Tue Dec 15 18:55:07 2009 +0100
+++ b/ChangeLog	Tue Dec 15 23:32:58 2009 +0100
@@ -1,3 +1,12 @@
+2009-12-15  Torbjorn Granlund  <tege at gmplib.org>
+
+	* mpn/generic/gcdext_subdiv_step.c: Get an ASSERT right.
+
+2009-12-15  Niels Möller  <nisse at lysator.liu.se>
+
+	* mpn/generic/sbpi1_div_qr.c (mpn_sbpi1_div_qr): A very small step
+	towards nail support.
+
 2009-12-15  Marco Bodrato <bodrato at mail.dm.unipi.it>
 
 	* gmp-impl.h (mpn_ni_invertappr): Added prototype and name-mangling.
diff -r 28d3f5d47fad -r 885fdc5a0175 mpn/generic/gcdext_subdiv_step.c
--- a/mpn/generic/gcdext_subdiv_step.c	Tue Dec 15 18:55:07 2009 +0100
+++ b/mpn/generic/gcdext_subdiv_step.c	Tue Dec 15 23:32:58 2009 +0100
@@ -104,7 +104,7 @@
 
 	  /* Must return the smallest cofactor, +u1 or -u0 */
 	  MPN_CMP (c, u0, u1, un);
-	  ASSERT (c != 0);
+	  ASSERT (c != 0 || (un == 1 && u0[0] == 1 && u1[0] == 1));
 
 	  if (c < 0)
 	    {
diff -r 28d3f5d47fad -r 885fdc5a0175 mpn/generic/sbpi1_div_qr.c
--- a/mpn/generic/sbpi1_div_qr.c	Tue Dec 15 18:55:07 2009 +0100
+++ b/mpn/generic/sbpi1_div_qr.c	Tue Dec 15 23:32:58 2009 +0100
@@ -81,7 +81,7 @@
 	  cy1 = n0 < cy;
 	  n0 = (n0 - cy) & GMP_NUMB_MASK;
 	  cy = n1 < cy1;
-	  n1 -= cy1;
+	  n1 = (n1 - cy1) & GMP_NUMB_MASK;
 	  np[0] = n0;
 
 	  if (UNLIKELY (cy != 0))
diff -r 28d3f5d47fad -r 885fdc5a0175 tune/Makefile.am
--- a/tune/Makefile.am	Tue Dec 15 18:55:07 2009 +0100
+++ b/tune/Makefile.am	Tue Dec 15 23:32:58 2009 +0100
@@ -41,7 +41,7 @@
 
 libspeed_la_SOURCES =							\
   common.c divrem1div.c divrem1inv.c divrem2div.c divrem2inv.c		\
-  freq.c					\
+  freq.c								\
   gcdext_single.c gcdext_double.c gcdextod.c gcdextos.c			\
   jacbase1.c jacbase2.c jacbase3.c					\
   mod_1_div.c mod_1_inv.c modlinv.c					\


More information about the gmp-commit mailing list