diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2011-05-09 11:17:43 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2011-05-09 11:17:43 +0000 |
commit | 569f97568b52b239b96e72d4db6aaa4cfa3f178e (patch) | |
tree | 7e358aa26c5f00cc3da74f3336ee8487dd1164a7 | |
parent | 1dd6447b429d22b7075e2c0c155cd076c73d4967 (diff) | |
download | mpfr-569f97568b52b239b96e72d4db6aaa4cfa3f178e.tar.gz |
[tests/texp.c] Fixed the test comparing mpfr_exp_2 and mpfr_exp_3:
filter out 0, as it is handled correctly only by mpfr_exp.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7674 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | tests/texp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/texp.c b/tests/texp.c index 6d49e1211..e67634001 100644 --- a/tests/texp.c +++ b/tests/texp.c @@ -170,7 +170,9 @@ compare_exp2_exp3 (mpfr_prec_t p0, mpfr_prec_t p1) mpfr_set_prec (x, prec); mpfr_set_prec (y, prec); mpfr_set_prec (z, prec); - mpfr_urandomb (x, RANDS); + do + mpfr_urandomb (x, RANDS); + while (MPFR_IS_ZERO (x)); /* 0 is handled by mpfr_exp only */ rnd = RND_RAND (); mpfr_exp_2 (y, x, rnd); mpfr_exp_3 (z, x, rnd); |