From 25a6f4c031d957a0b552f017ee3c64e6f7f0fdac Mon Sep 17 00:00:00 2001 From: vlefevre Date: Fri, 4 Sep 2015 09:39:10 +0000 Subject: 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 --- tune/tuneup.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tune') 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; -- cgit v1.2.1