[Gmp-commit] /home/hgfiles/gmp: Simplify rational expression.

mercurial at gmplib.org mercurial at gmplib.org
Mon Jan 4 16:08:54 CET 2010


details:   /home/hgfiles/gmp/rev/f4ed09601598
changeset: 13316:f4ed09601598
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Mon Jan 04 15:49:38 2010 +0100
description:
Simplify rational expression.

diffstat:

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

diffs (23 lines):

diff -r 2d42e08c2a06 -r f4ed09601598 ChangeLog
--- a/ChangeLog	Mon Jan 04 15:33:10 2010 +0100
+++ b/ChangeLog	Mon Jan 04 15:49:38 2010 +0100
@@ -1,5 +1,7 @@
 2010-01-04  Torbjorn Granlund  <tege at gmplib.org>
 
+	* mpn/generic/mul.c: Simplify rational expression.
+
 	* gmp-impl.h: Cleanup threshold variables; remove obsolete ones and
 	make all possibly needed definitions for existing ones.
 	* tune/tuneup.c (tune_mul): Write fractions-compensated values to
diff -r 2d42e08c2a06 -r f4ed09601598 mpn/generic/mul.c
--- a/mpn/generic/mul.c	Mon Jan 04 15:33:10 2010 +0100
+++ b/mpn/generic/mul.c	Mon Jan 04 15:49:38 2010 +0100
@@ -279,7 +279,7 @@
 	    {
 	      if (6 * un < 7 * vn)
 		mpn_toom33_mul (prodp, up, un, vp, vn, scratch);
-	      else if (6 * un < 9 * vn)
+	      else if (2 * un < 3 * vn)
 		{
 		  if (BELOW_THRESHOLD (vn, MUL_TOOM32_TO_TOOM43_THRESHOLD))
 		    mpn_toom32_mul (prodp, up, un, vp, vn, scratch);


More information about the gmp-commit mailing list