diff options
Diffstat (limited to 'tests/tmul_d.c')
-rw-r--r-- | tests/tmul_d.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/tmul_d.c b/tests/tmul_d.c index 08b76c8bc..05eb4e0f2 100644 --- a/tests/tmul_d.c +++ b/tests/tmul_d.c @@ -40,7 +40,7 @@ check_nans (void) /* nan * 1.0 is nan */ mpfr_set_nan (x); mpfr_clear_flags(); - inexact = mpfr_mul_d (y, x, 1.0, GMP_RNDN); + inexact = mpfr_mul_d (y, x, 1.0, MPFR_RNDN); MPFR_ASSERTN (inexact == 0); MPFR_ASSERTN ((__gmpfr_flags ^ MPFR_FLAGS_NAN) == 0); MPFR_ASSERTN (mpfr_nan_p (y)); @@ -48,7 +48,7 @@ check_nans (void) /* +inf * 1.0 == +inf */ mpfr_set_inf (x, 1); mpfr_clear_flags(); - inexact = mpfr_mul_d (y, x, 1.0, GMP_RNDN); + inexact = mpfr_mul_d (y, x, 1.0, MPFR_RNDN); MPFR_ASSERTN (inexact == 0); MPFR_ASSERTN (__gmpfr_flags == 0); MPFR_ASSERTN (mpfr_inf_p (y)); @@ -56,7 +56,7 @@ check_nans (void) /* +inf * 0.0 is nan */ mpfr_clear_flags(); - inexact = mpfr_mul_d (y, x, 0.0, GMP_RNDN); + inexact = mpfr_mul_d (y, x, 0.0, MPFR_RNDN); MPFR_ASSERTN (inexact == 0); MPFR_ASSERTN ((__gmpfr_flags ^ MPFR_FLAGS_NAN) == 0); MPFR_ASSERTN (mpfr_nan_p (y)); @@ -64,7 +64,7 @@ check_nans (void) /* -inf * 1.0 == -inf */ mpfr_set_inf (x, -1); mpfr_clear_flags(); - inexact = mpfr_mul_d (y, x, 1.0, GMP_RNDN); + inexact = mpfr_mul_d (y, x, 1.0, MPFR_RNDN); MPFR_ASSERTN (inexact == 0); MPFR_ASSERTN (__gmpfr_flags == 0); MPFR_ASSERTN (mpfr_inf_p (y)); @@ -93,24 +93,24 @@ main (void) mpfr_init2 (y, IEEE_DBL_MANT_DIG); mpfr_init2 (z, IEEE_DBL_MANT_DIG); - mpfr_set_str (y, "4096", 10, GMP_RNDN); + mpfr_set_str (y, "4096", 10, MPFR_RNDN); d = 0.125; mpfr_clear_flags (); - inexact = mpfr_mul_d (x, y, d, GMP_RNDN); + inexact = mpfr_mul_d (x, y, d, MPFR_RNDN); if (inexact != 0) { printf ("Inexact flag error in mpfr_mul_d\n"); exit (1); } - mpfr_set_str (z, "512", 10, GMP_RNDN); + mpfr_set_str (z, "512", 10, MPFR_RNDN); if (mpfr_cmp (z, x)) { printf ("Error in mpfr_mul_d ("); - mpfr_out_str (stdout, 10, 0, y, GMP_RNDN); + mpfr_out_str (stdout, 10, 0, y, MPFR_RNDN); printf (" + %.20g)\nexpected ", d); - mpfr_out_str (stdout, 10, 0, z, GMP_RNDN); + mpfr_out_str (stdout, 10, 0, z, MPFR_RNDN); printf ("\ngot "); - mpfr_out_str (stdout, 10, 0, x, GMP_RNDN); + mpfr_out_str (stdout, 10, 0, x, MPFR_RNDN); printf ("\n"); exit (1); } |