summaryrefslogtreecommitdiff
path: root/tests/tget_z.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2009-03-03 16:51:07 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2009-03-03 16:51:07 +0000
commitf5f7883fc7cf47d38ed493a882fd7109bdd589bb (patch)
tree1058cf0d07593fa2cec9f32b4988ac40611b4bff /tests/tget_z.c
parentcbd40e1cb659b579e608afbe7a05da5b15a860be (diff)
downloadmpfr-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/tget_z.c')
-rw-r--r--tests/tget_z.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/tget_z.c b/tests/tget_z.c
index d0af7a1c0..3191dfcd7 100644
--- a/tests/tget_z.c
+++ b/tests/tget_z.c
@@ -34,8 +34,8 @@ check_diff (void)
mpz_init (z);
mpfr_init2 (x, 2);
- mpfr_set_ui (x, 2047, GMP_RNDU);
- mpz_set_fr (z, x, GMP_RNDN);
+ mpfr_set_ui (x, 2047, MPFR_RNDU);
+ mpz_set_fr (z, x, MPFR_RNDN);
if (mpz_cmp_ui (z, 2048) != 0)
{
printf ("get_z RU 2048 failed\n");
@@ -60,20 +60,20 @@ check_one (mpz_ptr z)
for (neg = 0; neg <= 1; neg++)
{
mpz_neg (z, z);
- mpfr_set_z (f, z, GMP_RNDN);
+ mpfr_set_z (f, z, MPFR_RNDN);
if (sh < 0)
{
mpz_tdiv_q_2exp (z, z, -sh);
- mpfr_div_2exp (f, f, -sh, GMP_RNDN);
+ mpfr_div_2exp (f, f, -sh, MPFR_RNDN);
}
else
{
mpz_mul_2exp (z, z, sh);
- mpfr_mul_2exp (f, f, sh, GMP_RNDN);
+ mpfr_mul_2exp (f, f, sh, MPFR_RNDN);
}
- mpfr_get_z (got, f, GMP_RNDZ);
+ mpfr_get_z (got, f, MPFR_RNDZ);
if (mpz_cmp (got, z) != 0)
{