diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2021-01-31 11:02:21 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2021-01-31 11:02:21 +0000 |
commit | 070587279951e953938c529abbe09d90f991d130 (patch) | |
tree | b5d88add6712682398b79442feb7b0a44c86b8c5 /tests/tlgamma.c | |
parent | 52017aa9dda8bf7c3a1b81d9ebe465796d03891b (diff) | |
download | mpfr-070587279951e953938c529abbe09d90f991d130.tar.gz |
[tests/*.c] When not in a test, use set_emin and set_emax rather than
mpfr_set_emin and mpfr_set_emax, in order to check failures.
Done with: perl -pi -e 's/^ *\Kmpfr_(set_e(min|max) *\()/\1/' *.c
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14284 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tlgamma.c')
-rw-r--r-- | tests/tlgamma.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/tlgamma.c b/tests/tlgamma.c index f26b0ba2d..85d2c30f4 100644 --- a/tests/tlgamma.c +++ b/tests/tlgamma.c @@ -348,14 +348,14 @@ special (void) /* bug found by Kevin Rauch on 26 Oct 2007 */ emin = mpfr_get_emin (); emax = mpfr_get_emax (); - mpfr_set_emin (-1000000000); - mpfr_set_emax (1000000000); + set_emin (-1000000000); + set_emax (1000000000); mpfr_set_ui (x, 1, MPFR_RNDN); mpfr_lgamma (x, &sign, x, MPFR_RNDN); MPFR_ASSERTN(mpfr_get_emin () == -1000000000); MPFR_ASSERTN(mpfr_get_emax () == 1000000000); - mpfr_set_emin (emin); - mpfr_set_emax (emax); + set_emin (emin); + set_emax (emax); /* two other bugs reported by Kevin Rauch on 27 Oct 2007 */ mpfr_set_prec (x, 128); @@ -427,13 +427,13 @@ bug20180110 (void) mpfr_set_si_2exp (x, -1, -(1L << i), MPFR_RNDN); /* -2^(-2^i) */ mpfr_lgamma (y, &sign, x, MPFR_RNDZ); e = mpfr_get_exp (y); - mpfr_set_emax (e - 1); + set_emax (e - 1); mpfr_clear_flags (); inex = mpfr_lgamma (y, &sign, x, MPFR_RNDZ); flags = __gmpfr_flags; mpfr_set_inf (z, 1); mpfr_nextbelow (z); - mpfr_set_emax (emax); + set_emax (emax); if (! (mpfr_equal_p (y, z) && SAME_SIGN (inex, -1) && flags == eflags)) { printf ("Error in bug20180110 for i = %d:\n", i); |