summaryrefslogtreecommitdiff
path: root/tests/tatan.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2021-01-31 11:02:21 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2021-01-31 11:02:21 +0000
commit070587279951e953938c529abbe09d90f991d130 (patch)
treeb5d88add6712682398b79442feb7b0a44c86b8c5 /tests/tatan.c
parent52017aa9dda8bf7c3a1b81d9ebe465796d03891b (diff)
downloadmpfr-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/tatan.c')
-rw-r--r--tests/tatan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tatan.c b/tests/tatan.c
index b2aecc7e4..55c672704 100644
--- a/tests/tatan.c
+++ b/tests/tatan.c
@@ -443,7 +443,7 @@ smallvals_atan2 (void)
mpfr_set_prec (y, 8);
mpfr_set_prec (a, 8);
old_emin = mpfr_get_emin ();
- mpfr_set_emin (MPFR_EMIN_MIN);
+ set_emin (MPFR_EMIN_MIN);
mpfr_set_si (y, 3, MPFR_RNDN);
mpfr_set_exp (y, mpfr_get_emin ());
@@ -473,7 +473,7 @@ smallvals_atan2 (void)
mpfr_atan2 (a, y, x, MPFR_RNDN);
MPFR_ASSERTN (mpfr_zero_p (a));
- mpfr_set_emin (old_emin);
+ set_emin (old_emin);
mpfr_clears (a, x, y, (mpfr_ptr) 0);
}