diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2015-09-04 09:39:10 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2015-09-04 09:39:10 +0000 |
commit | 25a6f4c031d957a0b552f017ee3c64e6f7f0fdac (patch) | |
tree | 3a1450e69d12c092fcb6e427c86c6a17e9f3524c /tune | |
parent | b8214851ce37bd517b53513fb8a71e1e42df6bc5 (diff) | |
download | mpfr-25a6f4c031d957a0b552f017ee3c64e6f7f0fdac.tar.gz |
More details in a comment about assertions via tuneup.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9669 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tune')
-rw-r--r-- | tune/tuneup.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tune/tuneup.c b/tune/tuneup.c index 89fd98eb1..ce25ed013 100644 --- a/tune/tuneup.c +++ b/tune/tuneup.c @@ -280,9 +280,10 @@ speed_mpfr_sincos (struct speed_params *s) } /* Setup mpfr_mul, mpfr_sqr and mpfr_div */ -/* since mpfr_mul() deals with both mul and sqr, and contains an assert that +/* 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 */ + assertion (let's recall that static assertions are replaced by normal + dynamic assertions here). */ mpfr_prec_t mpfr_mul_threshold = 1; mpfr_prec_t mpfr_sqr_threshold = 1; mpfr_prec_t mpfr_div_threshold; |