diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2009-03-03 16:51:07 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2009-03-03 16:51:07 +0000 |
commit | f5f7883fc7cf47d38ed493a882fd7109bdd589bb (patch) | |
tree | 1058cf0d07593fa2cec9f32b4988ac40611b4bff /tests/tadd_d.c | |
parent | cbd40e1cb659b579e608afbe7a05da5b15a860be (diff) | |
download | mpfr-f5f7883fc7cf47d38ed493a882fd7109bdd589bb.tar.gz |
GMP_RNDX -> MPFR_RNDX
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6053 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tadd_d.c')
-rw-r--r-- | tests/tadd_d.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/tadd_d.c b/tests/tadd_d.c index 7b8224c46..26e4dc61e 100644 --- a/tests/tadd_d.c +++ b/tests/tadd_d.c @@ -40,24 +40,24 @@ check_regulars (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_add_d (x, y, d, GMP_RNDN); + inexact = mpfr_add_d (x, y, d, MPFR_RNDN); if (inexact != 0) { printf ("Inexact flag error in mpfr_add_d (1)\n"); exit (1); } - mpfr_set_str (z, "4096.125", 10, GMP_RNDN); + mpfr_set_str (z, "4096.125", 10, MPFR_RNDN); if (mpfr_cmp (z, x)) { printf ("Error in mpfr_add_d ("); - mpfr_out_str (stdout, 10, 7, y, GMP_RNDN); + mpfr_out_str (stdout, 10, 7, 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); } @@ -67,21 +67,21 @@ check_regulars (void) mpfr_set_prec (z, 2); mpfr_clear_flags (); - inexact = mpfr_add_d (x, y, d, GMP_RNDN); + inexact = mpfr_add_d (x, y, d, MPFR_RNDN); if (inexact == 0) { printf ("Inexact flag error in mpfr_add_d (2)\n"); exit (1); } - mpfr_set_str (z, "4096.125", 10, GMP_RNDN); + mpfr_set_str (z, "4096.125", 10, MPFR_RNDN); if (mpfr_cmp (z, x)) { printf ("Error in mpfr_add_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); } @@ -101,7 +101,7 @@ check_nans (void) /* nan + 1.0 is nan */ mpfr_set_nan (x); mpfr_clear_flags (); - inexact = mpfr_add_d (y, x, 1.0, GMP_RNDN); + inexact = mpfr_add_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)); @@ -109,7 +109,7 @@ check_nans (void) /* +inf + 1.0 == +inf */ mpfr_set_inf (x, 1); mpfr_clear_flags (); - inexact = mpfr_add_d (y, x, 1.0, GMP_RNDN); + inexact = mpfr_add_d (y, x, 1.0, MPFR_RNDN); MPFR_ASSERTN (inexact == 0); MPFR_ASSERTN (__gmpfr_flags == 0); MPFR_ASSERTN (mpfr_inf_p (y)); @@ -118,7 +118,7 @@ check_nans (void) /* -inf + 1.0 == -inf */ mpfr_set_inf (x, -1); mpfr_clear_flags (); - inexact = mpfr_add_d (y, x, 1.0, GMP_RNDN); + inexact = mpfr_add_d (y, x, 1.0, MPFR_RNDN); MPFR_ASSERTN (inexact == 0); MPFR_ASSERTN (__gmpfr_flags == 0); MPFR_ASSERTN (mpfr_inf_p (y)); |