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

mercurial at gmplib.org mercurial at gmplib.org
Mon Mar 14 20:01:29 CET 2011


details:   /var/hg/gmp/rev/f1ec394ddf8e
changeset: 14061:f1ec394ddf8e
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Mon Mar 14 20:01:06 2011 +0100
description:
Set tuning min size considering print skew.

details:   /var/hg/gmp/rev/00c43488126e
changeset: 14062:00c43488126e
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Mon Mar 14 20:01:25 2011 +0100
description:
*** empty log message ***

diffstat:

 ChangeLog     |   2 ++
 tune/tuneup.c |  16 ++++++++--------
 2 files changed, 10 insertions(+), 8 deletions(-)

diffs (56 lines):

diff -r d1436d3718b9 -r 00c43488126e ChangeLog
--- a/ChangeLog	Mon Mar 14 17:13:32 2011 +0100
+++ b/ChangeLog	Mon Mar 14 20:01:25 2011 +0100
@@ -1,5 +1,7 @@
 2011-03-14  Torbjorn Granlund  <tege at gmplib.org>
 
+	* tune/tuneup.c (tune_mul): Set tuning min size considering print skew.
+
 	* doc/gmp.texi: Make reference to "Formatted I/O" chapters from type
 	specific I/O sections.
 
diff -r d1436d3718b9 -r 00c43488126e tune/tuneup.c
--- a/tune/tuneup.c	Mon Mar 14 17:13:32 2011 +0100
+++ b/tune/tuneup.c	Mon Mar 14 20:01:25 2011 +0100
@@ -1267,33 +1267,33 @@
   param.function = speed_mpn_toom32_for_toom43_mul;
   param.function2 = speed_mpn_toom43_for_toom32_mul;
   param.name = "MUL_TOOM32_TO_TOOM43_THRESHOLD";
-  param.min_size = MPN_TOOM43_MUL_MINSIZE;
+  param.min_size = MPN_TOOM43_MUL_MINSIZE * 24 / 17;
   one (&thres, &param);
-  mul_toom32_to_toom43_threshold = 17*thres/24;
+  mul_toom32_to_toom43_threshold = thres * 17 / 24;
   print_define ("MUL_TOOM32_TO_TOOM43_THRESHOLD", mul_toom32_to_toom43_threshold);
 
   param.function = speed_mpn_toom32_for_toom53_mul;
   param.function2 = speed_mpn_toom53_for_toom32_mul;
   param.name = "MUL_TOOM32_TO_TOOM53_THRESHOLD";
-  param.min_size = MPN_TOOM53_MUL_MINSIZE;
+  param.min_size = MPN_TOOM53_MUL_MINSIZE * 30 / 19;
   one (&thres, &param);
-  mul_toom32_to_toom53_threshold = 19*thres/30;
+  mul_toom32_to_toom53_threshold = thres * 19 / 30;
   print_define ("MUL_TOOM32_TO_TOOM53_THRESHOLD", mul_toom32_to_toom53_threshold);
 
   param.function = speed_mpn_toom42_for_toom53_mul;
   param.function2 = speed_mpn_toom53_for_toom42_mul;
   param.name = "MUL_TOOM42_TO_TOOM53_THRESHOLD";
-  param.min_size = MPN_TOOM53_MUL_MINSIZE;
+  param.min_size = MPN_TOOM53_MUL_MINSIZE * 20 / 11;
   one (&thres, &param);
-  mul_toom42_to_toom53_threshold = 11*thres/20;
+  mul_toom42_to_toom53_threshold = thres * 11 / 20;
   print_define ("MUL_TOOM42_TO_TOOM53_THRESHOLD", mul_toom42_to_toom53_threshold);
 
   param.function = speed_mpn_toom42_mul;
   param.function2 = speed_mpn_toom63_mul;
   param.name = "MUL_TOOM42_TO_TOOM63_THRESHOLD";
-  param.min_size = MPN_TOOM63_MUL_MINSIZE;
+  param.min_size = MPN_TOOM63_MUL_MINSIZE * 2;
   one (&thres, &param);
-  mul_toom42_to_toom63_threshold = thres/2;
+  mul_toom42_to_toom63_threshold = thres / 2;
   print_define ("MUL_TOOM42_TO_TOOM63_THRESHOLD", mul_toom42_to_toom63_threshold);
 }
 


More information about the gmp-commit mailing list