diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2010-05-16 08:45:51 +0200 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2010-05-16 08:45:51 +0200 |
commit | ab8f5f37c260132a489c8a1f324c1ab6f5a2501a (patch) | |
tree | caff52579be0b9b67b1374bff91ee8d1c6eaa5f9 /tune | |
parent | 56c99adab5f1eab4d73cfd7bae7d3cd345451be5 (diff) | |
download | gmp-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.c | 12 |
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, ¶m); } + 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, ¶m); - 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; |