summaryrefslogtreecommitdiff
path: root/tune
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2010-05-16 08:45:51 +0200
committerTorbjorn Granlund <tege@gmplib.org>2010-05-16 08:45:51 +0200
commitab8f5f37c260132a489c8a1f324c1ab6f5a2501a (patch)
treecaff52579be0b9b67b1374bff91ee8d1c6eaa5f9 /tune
parent56c99adab5f1eab4d73cfd7bae7d3cd345451be5 (diff)
downloadgmp-ab8f5f37c260132a489c8a1f324c1ab6f5a2501a.tar.gz
Completely finish MOD_1_N tuning before tuning MOD_1U_TO_MOD_1_1_THRESHOLD.
Diffstat (limited to 'tune')
-rw-r--r--tune/tuneup.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tune/tuneup.c b/tune/tuneup.c
index 9c4f1d2f9..8975df72e 100644
--- a/tune/tuneup.c
+++ b/tune/tuneup.c
@@ -1807,6 +1807,11 @@ tune_mod_1 (void)
one (&mod_1_1_to_mod_1_2_threshold, &param);
}
+ if (mod_1u_to_mod_1_1_threshold >= mod_1_1_to_mod_1_2_threshold)
+ mod_1_1_to_mod_1_2_threshold = 0;
+ if (mod_1u_to_mod_1_1_threshold >= mod_1_2_to_mod_1_4_threshold)
+ mod_1_2_to_mod_1_4_threshold = 0;
+
param.function = speed_mpn_mod_1_tune;
param.function2 = NULL;
param.name = "MOD_1U_TO_MOD_1_1_THRESHOLD";
@@ -1814,11 +1819,6 @@ tune_mod_1 (void)
param.min_is_always = 0;
one (&mod_1u_to_mod_1_1_threshold, &param);
- if (mod_1u_to_mod_1_1_threshold >= mod_1_1_to_mod_1_2_threshold)
- mod_1_1_to_mod_1_2_threshold = 0;
- if (mod_1u_to_mod_1_1_threshold >= mod_1_2_to_mod_1_4_threshold)
- mod_1_2_to_mod_1_4_threshold = 0;
-
print_define_remark ("MOD_1U_TO_MOD_1_1_THRESHOLD", mod_1u_to_mod_1_1_threshold, NULL);
print_define_remark ("MOD_1_1_TO_MOD_1_2_THRESHOLD", mod_1_1_to_mod_1_2_threshold,
mod_1_1_to_mod_1_2_threshold == 0 ? "never mpn_mod_1_1p" : NULL);
@@ -1832,7 +1832,7 @@ tune_mod_1 (void)
param.check_size = 256;
param.name = "PREINV_MOD_1_TO_MOD_1_THRESHOLD";
- s.r = randlimb_norm ();
+ s.r = randlimb_half ();
param.function = speed_mpn_preinv_mod_1;
param.function2 = speed_mpn_mod_1_tune;
param.min_size = 1;