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

mercurial at gmplib.org mercurial at gmplib.org
Mon Oct 21 21:30:47 CEST 2013


details:   /var/hg/gmp/rev/e4511787236a
changeset: 16062:e4511787236a
user:      Niels Möller <nisse at lysator.liu.se>
date:      Mon Oct 21 21:28:01 2013 +0200
description:
Fixed ASSERT-related typos.

details:   /var/hg/gmp/rev/c7bf1e1695cc
changeset: 16063:c7bf1e1695cc
user:      Niels Möller <nisse at lysator.liu.se>
date:      Mon Oct 21 21:30:14 2013 +0200
description:
Add HAVE_NATIVE_mpn_div_qr_1n_pi1 to config.in.

diffstat:

 ChangeLog                   |  7 +++++++
 configure.ac                |  1 +
 mpn/generic/div_qr_1n_pi1.c |  6 +++---
 3 files changed, 11 insertions(+), 3 deletions(-)

diffs (55 lines):

diff -r 7810417b4ac2 -r c7bf1e1695cc ChangeLog
--- a/ChangeLog	Sun Oct 20 23:01:12 2013 +0200
+++ b/ChangeLog	Mon Oct 21 21:30:14 2013 +0200
@@ -1,3 +1,10 @@
+2013-10-21  Niels Möller  <nisse at lysator.liu.se>
+
+	* configure.ac: Add HAVE_NATIVE_mpn_div_qr_1n_pi1 to config.in.
+
+	* mpn/generic/div_qr_1n_pi1.c (mpn_div_qr_1n_pi1): Fix typos
+	affecting ASSERT.
+
 2013-10-20  Niels Möller  <nisse at lysator.liu.se>
 
 	* mpn/x86_64/div_qr_1n_pi1.asm: New file.
diff -r 7810417b4ac2 -r c7bf1e1695cc configure.ac
--- a/configure.ac	Sun Oct 20 23:01:12 2013 +0200
+++ b/configure.ac	Mon Oct 21 21:30:14 2013 +0200
@@ -3382,6 +3382,7 @@
 #undef HAVE_NATIVE_mpn_com
 #undef HAVE_NATIVE_mpn_copyd
 #undef HAVE_NATIVE_mpn_copyi
+#undef HAVE_NATIVE_mpn_div_qr_1n_pi1
 #undef HAVE_NATIVE_mpn_div_qr_2
 #undef HAVE_NATIVE_mpn_divexact_1
 #undef HAVE_NATIVE_mpn_divexact_by3c
diff -r 7810417b4ac2 -r c7bf1e1695cc mpn/generic/div_qr_1n_pi1.c
--- a/mpn/generic/div_qr_1n_pi1.c	Sun Oct 20 23:01:12 2013 +0200
+++ b/mpn/generic/div_qr_1n_pi1.c	Mon Oct 21 21:30:14 2013 +0200
@@ -187,7 +187,7 @@
 
   ASSERT (d & GMP_LIMB_HIGHBIT);
   ASSERT (n > 0);
-  ASSERT (uh < d);
+  ASSERT (u1 < d);
 
   if (n == 1)
     {
@@ -240,7 +240,7 @@
       /* Final q update */
       add_ssaaaa (q2, q1, q2, q1, 0, cy);
       qp[j+1] = q1;
-      MPN_INCR_U (qp+j+2, un-j-3, q2);
+      MPN_INCR_U (qp+j+2, n-j-3, q2);
 
       add_mssaaaa (u2, u1, u0, u0, up[j], p1, p0);
     }
@@ -255,7 +255,7 @@
   udiv_qrnnd_preinv (t, u0, u1, u0, d, dinv);
   add_ssaaaa (q1, q0, q1, q0, 0, t);
 
-  MPN_INCR_U (qp + 1, un-2, q1);
+  MPN_INCR_U (qp + 1, n-2, q1);
 
   qp[0] = q0;
   return u0;


More information about the gmp-commit mailing list