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

mercurial at gmplib.org mercurial at gmplib.org
Sun Feb 16 06:08:29 UTC 2014


details:   /var/hg/gmp/rev/83258bea6f8f
changeset: 16304:83258bea6f8f
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Sun Feb 16 07:06:57 2014 +0100
description:
mpn/generic/div_qr_1.c: Disallow DIV_QR_1_NORM_THRESHOLD==0

details:   /var/hg/gmp/rev/df5e57333079
changeset: 16305:df5e57333079
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Sun Feb 16 07:08:24 2014 +0100
description:
ChangeLog

diffstat:

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

diffs (23 lines):

diff -r 8f6b14683c6e -r df5e57333079 ChangeLog
--- a/ChangeLog	Sat Feb 15 16:21:10 2014 +0100
+++ b/ChangeLog	Sun Feb 16 07:08:24 2014 +0100
@@ -1,3 +1,7 @@
+2014-02-16 Marco Bodrato <bodrato at mail.dm.unipi.it>
+
+	* mpn/generic/div_qr_1.c: Disallow DIV_QR_1_NORM_THRESHOLD==0.
+
 2014-02-15  Torbjorn Granlund  <tege at gmplib.org>
 
 	* tests/mpn/t-div.c: Fix typo.
diff -r 8f6b14683c6e -r df5e57333079 mpn/generic/div_qr_1.c
--- a/mpn/generic/div_qr_1.c	Sat Feb 15 16:21:10 2014 +0100
+++ b/mpn/generic/div_qr_1.c	Sun Feb 16 07:08:24 2014 +0100
@@ -70,7 +70,7 @@
       *qh = q;
       uh -= (-q) & d;
 
-      if (BELOW_THRESHOLD (n, DIV_QR_1_NORM_THRESHOLD))
+      if (BELOW_THRESHOLD (n, DIV_QR_1_NORM_THRESHOLD | (DIV_QR_1_NORM_THRESHOLD==0)))
 	{
 	  cnt = 0;
 	plain:


More information about the gmp-commit mailing list