From 4fc10b29bcfd5b0ddd4aee1021235fb669ef302e Mon Sep 17 00:00:00 2001 From: zimmerma Date: Mon, 22 Feb 2010 17:23:27 +0000 Subject: changed mpfr_get_z_exp -> mpfr_get_z_2exp (old function) mpfr_set_z_exp -> mpfr_set_z_2exp (new function) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6707 280ebfd0-de03-0410-8827-d642c229c3f4 --- tests/tset_z_exp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/tset_z_exp.c') diff --git a/tests/tset_z_exp.c b/tests/tset_z_exp.c index 7dcc0093d..d2526bb08 100644 --- a/tests/tset_z_exp.c +++ b/tests/tset_z_exp.c @@ -1,4 +1,4 @@ -/* Test file for mpfr_set_z_exp. +/* Test file for mpfr_set_z_2exp. Copyright 1999, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. Contributed by the Arenaire and Cacao projects, INRIA. @@ -48,10 +48,10 @@ check0 (void) for(r = 0; r < MPFR_RND_MAX; r++) { e = randexp (); - inexact = mpfr_set_z_exp (x, y, e, (mpfr_rnd_t) r); + inexact = mpfr_set_z_2exp (x, y, e, (mpfr_rnd_t) r); if (!MPFR_IS_ZERO(x) || !MPFR_IS_POS(x) || inexact) { - printf ("mpfr_set_z_exp(x,0,e) failed for e=%ld, rnd=%s\n", e, + printf ("mpfr_set_z_2exp(x,0,e) failed for e=%ld, rnd=%s\n", e, mpfr_print_rnd_mode ((mpfr_rnd_t) r)); exit (1); } @@ -75,11 +75,11 @@ check (long i, mpfr_rnd_t rnd) mpz_init (z); mpz_set_ui (z, i); e = randexp (); - mpfr_set_z_exp (f, z, e, rnd); + mpfr_set_z_2exp (f, z, e, rnd); mpfr_div_2si (f, f, e, rnd); if (mpfr_get_si (f, MPFR_RNDZ) != i) { - printf ("Error in mpfr_set_z_exp for i=%ld e=%ld rnd_mode=%d\n", + printf ("Error in mpfr_set_z_2exp for i=%ld e=%ld rnd_mode=%d\n", i, e, rnd); printf ("expected %ld\n", i); mpfr_printf ("got %Re\n", f); -- cgit v1.2.1