summaryrefslogtreecommitdiff
path: root/tests/texp2.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/texp2.c')
-rw-r--r--tests/texp2.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/texp2.c b/tests/texp2.c
index ca4078860..88b2c42a9 100644
--- a/tests/texp2.c
+++ b/tests/texp2.c
@@ -162,13 +162,13 @@ overflowed_exp2_0 (void)
{
mpfr_set_si_2exp (x, i, -512 * ABS (i), MPFR_RNDN);
mpfr_clear_flags ();
- inex = mpfr_exp2 (x, x, (mp_rnd_t) rnd);
+ inex = mpfr_exp2 (x, x, (mpfr_rnd_t) rnd);
if ((i >= 0 || emax < 0 || rnd == MPFR_RNDN || rnd == MPFR_RNDU) &&
! mpfr_overflow_p ())
{
printf ("Error in overflowed_exp2_0 (i = %d, rnd = %s):\n"
" The overflow flag is not set.\n",
- i, mpfr_print_rnd_mode ((mp_rnd_t) rnd));
+ i, mpfr_print_rnd_mode ((mpfr_rnd_t) rnd));
err = 1;
}
if (rnd == MPFR_RNDZ || rnd == MPFR_RNDD)
@@ -177,13 +177,13 @@ overflowed_exp2_0 (void)
{
printf ("Error in overflowed_exp2_0 (i = %d, rnd = %s):\n"
" The inexact value must be negative.\n",
- i, mpfr_print_rnd_mode ((mp_rnd_t) rnd));
+ i, mpfr_print_rnd_mode ((mpfr_rnd_t) rnd));
err = 1;
}
if (! mpfr_equal_p (x, y))
{
printf ("Error in overflowed_exp2_0 (i = %d, rnd = %s):\n"
- " Got ", i, mpfr_print_rnd_mode ((mp_rnd_t) rnd));
+ " Got ", i, mpfr_print_rnd_mode ((mpfr_rnd_t) rnd));
mpfr_print_binary (x);
printf (" instead of 0.11111111E%d.\n", emax);
err = 1;
@@ -195,13 +195,13 @@ overflowed_exp2_0 (void)
{
printf ("Error in overflowed_exp2_0 (i = %d, rnd = %s):\n"
" The inexact value must be positive.\n",
- i, mpfr_print_rnd_mode ((mp_rnd_t) rnd));
+ i, mpfr_print_rnd_mode ((mpfr_rnd_t) rnd));
err = 1;
}
if (! (mpfr_inf_p (x) && MPFR_SIGN (x) > 0))
{
printf ("Error in overflowed_exp2_0 (i = %d, rnd = %s):\n"
- " Got ", i, mpfr_print_rnd_mode ((mp_rnd_t) rnd));
+ " Got ", i, mpfr_print_rnd_mode ((mpfr_rnd_t) rnd));
mpfr_print_binary (x);
printf (" instead of +Inf.\n");
err = 1;