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/tdiv_ui.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/tdiv_ui.c')
-rw-r--r-- | tests/tdiv_ui.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/tdiv_ui.c b/tests/tdiv_ui.c index d86324901..ba821b989 100644 --- a/tests/tdiv_ui.c +++ b/tests/tdiv_ui.c @@ -27,7 +27,7 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #include "mpfr-test.h" static void -check (const char *ds, unsigned long u, mp_rnd_t rnd, const char *es) +check (const char *ds, unsigned long u, mpfr_rnd_t rnd, const char *es) { mpfr_t x, y; @@ -168,8 +168,8 @@ check_inexact (void) mpfr_set_prec (z, py + mp_bits_per_limb); for (rnd = 0; rnd < MPFR_RND_MAX; rnd++) { - inexact = mpfr_div_ui (y, x, u, (mp_rnd_t) rnd); - if (mpfr_mul_ui (z, y, u, (mp_rnd_t) rnd)) + inexact = mpfr_div_ui (y, x, u, (mpfr_rnd_t) rnd); + if (mpfr_mul_ui (z, y, u, (mpfr_rnd_t) rnd)) { printf ("z <- y * u should be exact for u=%lu\n", u); printf ("y="); mpfr_print_binary (y); puts (""); @@ -182,7 +182,7 @@ check_inexact (void) ((inexact < 0) && (cmp >= 0))) { printf ("Wrong inexact flag for u=%lu, rnd=%s\n", u, - mpfr_print_rnd_mode ((mp_rnd_t) rnd)); + mpfr_print_rnd_mode ((mpfr_rnd_t) rnd)); printf ("x="); mpfr_print_binary (x); puts (""); printf ("y="); mpfr_print_binary (y); puts (""); exit (1); |