summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2021-01-31 10:44:32 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2021-01-31 10:44:32 +0000
commitb253cdb88a04117f14b4e605938f4a36d011e443 (patch)
tree4b871584373420853eac58561e5dbc0b0234d823 /tests
parente1b32349bd3e5f5680d958a1824ac4ad46d45add (diff)
downloadmpfr-b253cdb88a04117f14b4e605938f4a36d011e443.tar.gz
[tests/tcot.c] Use set_emin and set_emax rather than mpfr_set_emin and
mpfr_set_emax with a test (test done in set_emin / set_emax). git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14282 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests')
-rw-r--r--tests/tcot.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/tcot.c b/tests/tcot.c
index cb514d0a1..18413d117 100644
--- a/tests/tcot.c
+++ b/tests/tcot.c
@@ -88,11 +88,8 @@ two2emin (mpfr_exp_t e)
old_emin = mpfr_get_emin ();
old_emax = mpfr_get_emax ();
- if (mpfr_set_emin (-e) || mpfr_set_emax (e))
- {
- printf ("Can't change exponent range\n");
- exit (1);
- }
+ set_emin (-e);
+ set_emax (e);
mpfr_inits2 (53, x, y, (mpfr_ptr) 0);
for (i = -4; i <= 4; i++)
@@ -120,8 +117,8 @@ two2emin (mpfr_exp_t e)
}
mpfr_clears (x, y, (mpfr_ptr) 0);
- mpfr_set_emin (old_emin);
- mpfr_set_emax (old_emax);
+ set_emin (old_emin);
+ set_emax (old_emax);
}
int