summaryrefslogtreecommitdiff
path: root/tune
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2012-01-02 17:19:55 +0100
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2012-01-02 17:19:55 +0100
commitc9bb6775abee7ce2f8d998f95940a6567c777898 (patch)
tree4f9bb124e89d4bc7e3e1907f03bafc5d20b32427 /tune
parent67f81c820908b070274111a03f7a24ad1fabf557 (diff)
downloadgmp-c9bb6775abee7ce2f8d998f95940a6567c777898.tar.gz
Small correction to fac_ui thresholds computation.
Diffstat (limited to 'tune')
-rw-r--r--tune/tuneup.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/tune/tuneup.c b/tune/tuneup.c
index ce84e8fa7..6bd486af2 100644
--- a/tune/tuneup.c
+++ b/tune/tuneup.c
@@ -1,7 +1,7 @@
/* Create tuned thresholds for various algorithms.
-Copyright 1999, 2000, 2001, 2002, 2003, 2005, 2006, 2008, 2009, 2010, 2011
-Free Software Foundation, Inc.
+Copyright 1999, 2000, 2001, 2002, 2003, 2005, 2006, 2008, 2009, 2010,
+2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -214,7 +214,7 @@ mp_size_t get_str_dc_threshold = MP_SIZE_T_MAX;
mp_size_t get_str_precompute_threshold = MP_SIZE_T_MAX;
mp_size_t set_str_dc_threshold = MP_SIZE_T_MAX;
mp_size_t set_str_precompute_threshold = MP_SIZE_T_MAX;
-mp_size_t fac_odd_threshold = MP_SIZE_T_MAX;
+mp_size_t fac_odd_threshold = 0;
mp_size_t fac_dsc_threshold = FAC_DSC_THRESHOLD_LIMIT;
mp_size_t fft_modf_sqr_threshold = MP_SIZE_T_MAX;
@@ -2628,15 +2628,14 @@ tune_fac_ui (void)
param.function = speed_mpz_fac_ui_tune;
- param.name = "FAC_ODD_THRESHOLD";
- param.min_size = 3;
- param.min_is_always = 0;
- one (&fac_odd_threshold, &param);
-
param.name = "FAC_DSC_THRESHOLD";
- param.min_size = MAX (32, fac_odd_threshold);
+ param.min_size = 32;
param.max_size = FAC_DSC_THRESHOLD_LIMIT;
one (&fac_dsc_threshold, &param);
+
+ param.name = "FAC_ODD_THRESHOLD";
+ param.min_size = 9;
+ one (&fac_odd_threshold, &param);
}
void