diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2015-09-04 09:23:58 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2015-09-04 09:23:58 +0000 |
commit | b8214851ce37bd517b53513fb8a71e1e42df6bc5 (patch) | |
tree | e72b2303f0807f75ff7278f3de811f5f1f2c5169 /tune | |
parent | 6be650199fce2d5daca288d66451c99d2c799a7e (diff) | |
download | mpfr-b8214851ce37bd517b53513fb8a71e1e42df6bc5.tar.gz |
fixed failed assertion during "make tune"
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9668 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tune')
-rw-r--r-- | tune/tuneup.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tune/tuneup.c b/tune/tuneup.c index db8afd64f..89fd98eb1 100644 --- a/tune/tuneup.c +++ b/tune/tuneup.c @@ -280,8 +280,11 @@ speed_mpfr_sincos (struct speed_params *s) } /* Setup mpfr_mul, mpfr_sqr and mpfr_div */ -mpfr_prec_t mpfr_mul_threshold; -mpfr_prec_t mpfr_sqr_threshold; +/* since mpfr_mul() deals with both mul and sqr, and contains an assert that + the thresholds are >= 1, we initialize both values to 1 to avoid a failed + assertion */ +mpfr_prec_t mpfr_mul_threshold = 1; +mpfr_prec_t mpfr_sqr_threshold = 1; mpfr_prec_t mpfr_div_threshold; #undef MPFR_MUL_THRESHOLD #define MPFR_MUL_THRESHOLD mpfr_mul_threshold |