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/tgeneric.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/tgeneric.c')
-rw-r--r-- | tests/tgeneric.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/tgeneric.c b/tests/tgeneric.c index 24bfe1d9b..52dced7f2 100644 --- a/tests/tgeneric.c +++ b/tests/tgeneric.c @@ -50,12 +50,12 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., do \ { \ printf ("%s\nx = ", (S)); \ - mpfr_out_str (stdout, 2, 0, (X), GMP_RNDN); \ + mpfr_out_str (stdout, 2, 0, (X), MPFR_RNDN); \ printf ("\n"); \ if ((void *) U != 0) \ { \ printf ("u = "); \ - mpfr_out_str (stdout, 2, 0, (U), GMP_RNDN); \ + mpfr_out_str (stdout, 2, 0, (U), MPFR_RNDN); \ printf ("\n"); \ } \ printf ("yprec = %u, rnd_mode = %s, inexact = %d, flags = %u\n", \ @@ -82,12 +82,12 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., printf ("tgeneric: testing function " STR(F) \ ", %s, target prec = %lu\nx = ", \ mpfr_print_rnd_mode (rnd), (unsigned long) (P)); \ - mpfr_out_str (stdout, 2, 0, (X), GMP_RNDN); \ + mpfr_out_str (stdout, 2, 0, (X), MPFR_RNDN); \ printf ("\n"); \ if (U) \ { \ printf ("u = "); \ - mpfr_out_str (stdout, 2, 0, (U), GMP_RNDN); \ + mpfr_out_str (stdout, 2, 0, (U), MPFR_RNDN); \ printf ("\n"); \ } \ } \ @@ -184,10 +184,10 @@ test_generic (mp_prec_t p0, mp_prec_t p1, unsigned int N) set_emax (MPFR_EMAX_MAX); 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 ()); #if defined(TWO_ARGS) || defined(DOUBLE_ARG1) || defined(DOUBLE_ARG2) - mpfr_set_si (u, randlimb () % 2 == 0 ? 1 : -1, GMP_RNDN); + mpfr_set_si (u, randlimb () % 2 == 0 ? 1 : -1, MPFR_RNDN); mpfr_set_exp (u, mpfr_get_emin ()); #endif } @@ -195,10 +195,10 @@ test_generic (mp_prec_t p0, mp_prec_t p1, unsigned int N) { if (getenv ("MPFR_CHECK_MAX") == NULL) goto next_n; - mpfr_set_si (x, n == 0 ? 1 : -1, GMP_RNDN); + mpfr_set_si (x, n == 0 ? 1 : -1, MPFR_RNDN); mpfr_setmax (x, REDUCE_EMAX); #if defined(TWO_ARGS) || defined(DOUBLE_ARG1) || defined(DOUBLE_ARG2) - mpfr_set_si (u, randlimb () % 2 == 0 ? 1 : -1, GMP_RNDN); + mpfr_set_si (u, randlimb () % 2 == 0 ? 1 : -1, MPFR_RNDN); mpfr_setmax (u, mpfr_get_emax ()); #endif } @@ -277,21 +277,21 @@ test_generic (mp_prec_t p0, mp_prec_t p1, unsigned int N) if (mpfr_nan_p (z) || mpfr_cmp (t, z) != 0) { printf ("results differ for x="); - mpfr_out_str (stdout, 2, xprec, x, GMP_RNDN); + mpfr_out_str (stdout, 2, xprec, x, MPFR_RNDN); #ifdef TWO_ARGS printf ("\nu="); - mpfr_out_str (stdout, 2, xprec, u, GMP_RNDN); + mpfr_out_str (stdout, 2, xprec, u, MPFR_RNDN); #elif defined(DOUBLE_ARG1) || defined(DOUBLE_ARG2) printf ("\nu="); - mpfr_out_str (stdout, 2, IEEE_DBL_MANT_DIG, u, GMP_RNDN); + mpfr_out_str (stdout, 2, IEEE_DBL_MANT_DIG, u, MPFR_RNDN); #endif printf (" prec=%u rnd_mode=%s\n", (unsigned) prec, mpfr_print_rnd_mode (rnd)); 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); |