[Gmp-commit] /home/hgfiles/gmp: A very small step towards nail support.

mercurial at gmplib.org mercurial at gmplib.org
Tue Dec 15 21:18:33 CET 2009


details:   /home/hgfiles/gmp/rev/8d26c22c77fe
changeset: 13082:8d26c22c77fe
user:      Niels M?ller <nisse at lysator.liu.se>
date:      Tue Dec 15 21:07:27 2009 +0100
description:
A very small step towards nail support.

diffstat:

 ChangeLog                  |  5 +++++
 mpn/generic/sbpi1_div_qr.c |  2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 28d3f5d47fad -r 8d26c22c77fe ChangeLog
--- a/ChangeLog	Tue Dec 15 18:55:07 2009 +0100
+++ b/ChangeLog	Tue Dec 15 21:07:27 2009 +0100
@@ -1,3 +1,8 @@
+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 8d26c22c77fe 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 21:07:27 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))


More information about the gmp-commit mailing list