From b8214851ce37bd517b53513fb8a71e1e42df6bc5 Mon Sep 17 00:00:00 2001 From: zimmerma Date: Fri, 4 Sep 2015 09:23:58 +0000 Subject: fixed failed assertion during "make tune" git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9668 280ebfd0-de03-0410-8827-d642c229c3f4 --- tune/tuneup.c | 7 +++++-- 1 file 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 -- cgit v1.2.1