diff options
Diffstat (limited to 'tests/tgeneric_ui.c')
-rw-r--r-- | tests/tgeneric_ui.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/tgeneric_ui.c b/tests/tgeneric_ui.c index 643376a7b..0f3ec72f0 100644 --- a/tests/tgeneric_ui.c +++ b/tests/tgeneric_ui.c @@ -61,7 +61,7 @@ test_generic_ui (mp_prec_t p0, mp_prec_t p1, unsigned int N) else { /* Special cases tested in precision p1 if n <= 1. */ - mpfr_set_si (x, n == 0 ? 1 : -1, GMP_RNDN); + mpfr_set_si (x, n == 0 ? 1 : -1, MPFR_RNDN); mpfr_set_exp (x, mpfr_get_emin ()); } u = INT_RAND_FUNCTION (); @@ -75,7 +75,7 @@ test_generic_ui (mp_prec_t p0, mp_prec_t p1, unsigned int N) if (mpfr_cmp (t, z)) { printf ("results differ for x="); - mpfr_out_str (stdout, 2, prec, x, GMP_RNDN); + mpfr_out_str (stdout, 2, prec, x, MPFR_RNDN); printf ("\nu=%lu", (unsigned long) u); printf (" prec=%lu rnd_mode=%s\n", (unsigned long ) prec, mpfr_print_rnd_mode (rnd)); @@ -83,10 +83,10 @@ test_generic_ui (mp_prec_t p0, mp_prec_t p1, unsigned int N) printf ("Function: %s\n", TEST_FUNCTION_NAME); #endif printf ("got "); - mpfr_out_str (stdout, 2, prec, z, GMP_RNDN); + mpfr_out_str (stdout, 2, prec, z, MPFR_RNDN); puts (""); printf ("expected "); - mpfr_out_str (stdout, 2, prec, t, GMP_RNDN); + mpfr_out_str (stdout, 2, prec, t, MPFR_RNDN); puts (""); printf ("approx "); mpfr_print_binary (y); |