[Gmp-commit] /home/hgfiles/gmp: 2 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Sun Feb 7 23:03:52 CET 2010


details:   /home/hgfiles/gmp/rev/516060f26578
changeset: 13423:516060f26578
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Feb 07 11:25:54 2010 +0100
description:
Fix typo.

details:   /home/hgfiles/gmp/rev/582a938fa2a4
changeset: 13424:582a938fa2a4
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Feb 07 23:03:45 2010 +0100
description:
Fix tuning of REDC_1_TO_REDC_2_THRESHOLD and PREINV_MOD_1_TO_MOD_1_THRESHOLD.

diffstat:

 ChangeLog     |  4 ++++
 NEWS          |  2 +-
 tune/tuneup.c |  3 +++
 3 files changed, 8 insertions(+), 1 deletions(-)

diffs (45 lines):

diff -r c174678776cc -r 582a938fa2a4 ChangeLog
--- a/ChangeLog	Sun Feb 07 09:58:31 2010 +0100
+++ b/ChangeLog	Sun Feb 07 23:03:45 2010 +0100
@@ -1,5 +1,9 @@
 2010-02-07  Torbjorn Granlund  <tege at gmplib.org>
 
+	* tune/tuneup.c (tune_redc): Set min_size and min_is_always when
+	measuring REDC_1_TO_REDC_2_THRESHOLD.
+	(tune_mod_1): Set min_size for PREINV_MOD_1_TO_MOD_1_THRESHOLD.
+
 	* mpn/x86_64/aorrlsh_n.asm (cnt): Fix a typo.
 	* mpn/x86_64/lshsub_n.asm: Likewise.
 
diff -r c174678776cc -r 582a938fa2a4 NEWS
--- a/NEWS	Sun Feb 07 09:58:31 2010 +0100
+++ b/NEWS	Sun Feb 07 23:03:45 2010 +0100
@@ -19,7 +19,7 @@
     confusion.
 
   SPEEDUPS
-  * Multiplicaton of large numbers has indirectly been sped up through
+  * Multiplication of large numbers has indirectly been sped up through
     better FFT tuning and processor recognition.  Since many operations
     depend on multiplication, there will be a general speedup.
 
diff -r c174678776cc -r 582a938fa2a4 tune/tuneup.c
--- a/tune/tuneup.c	Sun Feb 07 09:58:31 2010 +0100
+++ b/tune/tuneup.c	Sun Feb 07 23:03:45 2010 +0100
@@ -1562,6 +1562,8 @@
     param.name = "REDC_1_TO_REDC_2_THRESHOLD";
     param.function = speed_mpn_redc_1;
     param.function2 = speed_mpn_redc_2;
+    param.min_size = 1;
+    param.min_is_always = 1;
     param.max_size = TUNE_REDC_2_MAX;
     param.noprint = 1;
     one (&redc_1_to_redc_2_threshold, &param);
@@ -1825,6 +1827,7 @@
     s.r = randlimb_norm ();
     param.function = speed_mpn_preinv_mod_1;
     param.function2 = speed_mpn_mod_1_tune;
+    param.min_size = 1;
     one (&preinv_mod_1_to_mod_1_threshold, &param);
   }
 }


More information about the gmp-commit mailing list