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/ty1.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/ty1.c')
-rw-r--r-- | tests/ty1.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/ty1.c b/tests/ty1.c index 2d5b3e9c6..f66acbf53 100644 --- a/tests/ty1.c +++ b/tests/ty1.c @@ -41,45 +41,45 @@ main (int argc, char *argv[]) /* special values */ mpfr_set_nan (x); - mpfr_y1 (y, x, GMP_RNDN); + mpfr_y1 (y, x, MPFR_RNDN); MPFR_ASSERTN(mpfr_nan_p (y)); mpfr_set_inf (x, 1); /* +Inf */ - mpfr_y1 (y, x, GMP_RNDN); + mpfr_y1 (y, x, MPFR_RNDN); MPFR_ASSERTN(mpfr_cmp_ui (y, 0) == 0 && MPFR_IS_POS (y)); mpfr_set_inf (x, -1); /* -Inf */ - mpfr_y1 (y, x, GMP_RNDN); + mpfr_y1 (y, x, MPFR_RNDN); MPFR_ASSERTN(mpfr_nan_p (y)); - mpfr_set_ui (x, 0, GMP_RNDN); /* +0 */ - mpfr_y1 (y, x, GMP_RNDN); + mpfr_set_ui (x, 0, MPFR_RNDN); /* +0 */ + mpfr_y1 (y, x, MPFR_RNDN); MPFR_ASSERTN(mpfr_inf_p (y) && MPFR_IS_NEG (y)); /* y1(+0)=-Inf */ - mpfr_set_ui (x, 0, GMP_RNDN); - mpfr_neg (x, x, GMP_RNDN); /* -0 */ - mpfr_y1 (y, x, GMP_RNDN); + mpfr_set_ui (x, 0, MPFR_RNDN); + mpfr_neg (x, x, MPFR_RNDN); /* -0 */ + mpfr_y1 (y, x, MPFR_RNDN); MPFR_ASSERTN(mpfr_inf_p (y) && MPFR_IS_NEG (y)); /* y1(-0)=-Inf */ mpfr_set_prec (x, 53); mpfr_set_prec (y, 53); - mpfr_set_ui (x, 1, GMP_RNDN); - mpfr_y1 (y, x, GMP_RNDN); + mpfr_set_ui (x, 1, MPFR_RNDN); + mpfr_y1 (y, x, MPFR_RNDN); mpfr_set_str_binary (x, "-0.110001111111110110010000001111101011001101011100101"); if (mpfr_cmp (x, y)) { - printf ("Error in mpfr_y1 for x=1, rnd=GMP_RNDN\n"); + printf ("Error in mpfr_y1 for x=1, rnd=MPFR_RNDN\n"); printf ("Expected "); mpfr_dump (x); printf ("Got "); mpfr_dump (y); exit (1); } - mpfr_set_si (x, -1, GMP_RNDN); - mpfr_y1 (y, x, GMP_RNDN); + mpfr_set_si (x, -1, MPFR_RNDN); + mpfr_y1 (y, x, MPFR_RNDN); if (!mpfr_nan_p (y)) { - printf ("Error in mpfr_y1 for x=-1, rnd=GMP_RNDN\n"); + printf ("Error in mpfr_y1 for x=-1, rnd=MPFR_RNDN\n"); printf ("Expected NaN\n"); printf ("Got "); mpfr_dump (y); exit (1); |