[Gmp-commit] /home/hgfiles/gmp: Get final mpn_sbpi1_bdiv_q call right.

mercurial at gmplib.org mercurial at gmplib.org
Tue Dec 1 17:13:33 CET 2009


details:   /home/hgfiles/gmp/rev/82194081eb2f
changeset: 12948:82194081eb2f
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Tue Dec 01 17:13:30 2009 +0100
description:
Get final mpn_sbpi1_bdiv_q call right.

diffstat:

 ChangeLog                  |  2 ++
 mpn/generic/dcpi1_bdiv_q.c |  2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 268292737a65 -r 82194081eb2f ChangeLog
--- a/ChangeLog	Tue Dec 01 16:07:04 2009 +0100
+++ b/ChangeLog	Tue Dec 01 17:13:30 2009 +0100
@@ -4,6 +4,8 @@
 
 2009-12-01  Torbjorn Granlund  <tege at gmplib.org>
 
+	* mpn/generic/dcpi1_bdiv_q.c: Get final mpn_sbpi1_bdiv_q call right.
+
 	* tune/speed.c (routine): Fix typo in last change.
 	Add mpn_redc_2.
 
diff -r 268292737a65 -r 82194081eb2f mpn/generic/dcpi1_bdiv_q.c
--- a/mpn/generic/dcpi1_bdiv_q.c	Tue Dec 01 16:07:04 2009 +0100
+++ b/mpn/generic/dcpi1_bdiv_q.c	Tue Dec 01 17:13:30 2009 +0100
@@ -128,7 +128,7 @@
     }
 
   if (BELOW_THRESHOLD (qn, DC_BDIV_Q_THRESHOLD))
-    mpn_sbpi1_bdiv_q (qp, np, 2 * qn, dp, qn, dinv);
+    mpn_sbpi1_bdiv_q (qp, np, qn, dp, qn, dinv);
   else
     mpn_dcpi1_bdiv_q_n (qp, np, dp, qn, dinv, tp);
 


More information about the gmp-commit mailing list