diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2009-06-26 15:35:01 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2009-06-26 15:35:01 +0000 |
commit | 3f944f217a6bc9b3d72b73067de160e768f6a4e3 (patch) | |
tree | 89d977f3c15ee4383fe0629c40f504c14a352090 /tests/tconst_euler.c | |
parent | 0a7b8e19cf4789f503f55b4e046327c38ab786b3 (diff) | |
download | mpfr-3f944f217a6bc9b3d72b73067de160e768f6a4e3.tar.gz |
mp_rnd_t -> mpfr_rnd_t
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6295 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tconst_euler.c')
-rw-r--r-- | tests/tconst_euler.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/tconst_euler.c b/tests/tconst_euler.c index 18d797fbe..4e4becfdc 100644 --- a/tests/tconst_euler.c +++ b/tests/tconst_euler.c @@ -27,7 +27,7 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., /* Wrapper for tgeneric */ static int -my_const_euler (mpfr_ptr x, mpfr_srcptr y, mp_rnd_t r) +my_const_euler (mpfr_ptr x, mpfr_srcptr y, mpfr_rnd_t r) { return mpfr_const_euler (x, r); } @@ -80,16 +80,16 @@ main (int argc, char *argv[]) for (rnd = 0; rnd < MPFR_RND_MAX; rnd++) { mpfr_set_prec (y, yprec); - mpfr_const_euler (y, (mp_rnd_t) rnd); + mpfr_const_euler (y, (mpfr_rnd_t) rnd); err = (rnd == MPFR_RNDN) ? yprec + 1 : yprec; - if (mpfr_can_round (y, err, (mp_rnd_t) rnd, (mp_rnd_t) rnd, prec)) + if (mpfr_can_round (y, err, (mpfr_rnd_t) rnd, (mpfr_rnd_t) rnd, prec)) { - mpfr_set (t, y, (mp_rnd_t) rnd); - mpfr_const_euler (z, (mp_rnd_t) rnd); + mpfr_set (t, y, (mpfr_rnd_t) rnd); + mpfr_const_euler (z, (mpfr_rnd_t) rnd); if (mpfr_cmp (t, z)) { printf ("results differ for prec=%u rnd_mode=%s\n", prec, - mpfr_print_rnd_mode ((mp_rnd_t) rnd)); + mpfr_print_rnd_mode ((mpfr_rnd_t) rnd)); printf (" got "); mpfr_out_str (stdout, 2, prec, z, MPFR_RNDN); puts (""); |