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/tadd.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/tadd.c')
-rw-r--r-- | tests/tadd.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/tadd.c b/tests/tadd.c index 9523b0695..5dcd914d0 100644 --- a/tests/tadd.c +++ b/tests/tadd.c @@ -34,7 +34,7 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., static int usesp; static int -test_add (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mp_rnd_t rnd_mode) +test_add (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mpfr_rnd_t rnd_mode) { int res; #ifdef CHECK_EXTERNAL @@ -78,7 +78,7 @@ test_add (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mp_rnd_t rnd_mode) /* checks that x+y gives the right result with 53 bits of precision */ static void -pcheck (const char *xs, const char *ys, const char *zs, mp_rnd_t rnd_mode, +pcheck (const char *xs, const char *ys, const char *zs, mpfr_rnd_t rnd_mode, unsigned int px, unsigned int py, unsigned int pz) { mpfr_t xx,yy,zz; @@ -105,7 +105,7 @@ static void check2b (const char *xs, int px, const char *ys, int py, const char *rs, int pz, - mp_rnd_t rnd_mode) + mpfr_rnd_t rnd_mode) { mpfr_t xx, yy, zz; @@ -477,7 +477,7 @@ check_inexact (void) mpfr_t x, y, z, u; mp_prec_t px, py, pu, pz; int inexact, cmp; - mp_rnd_t rnd; + mpfr_rnd_t rnd; mpfr_init (x); mpfr_init (y); @@ -651,7 +651,7 @@ check_overflow (void) { mpfr_set_prec (a, prec_a); mpfr_clear_overflow (); - test_add (a, b, c, (mp_rnd_t) r); + test_add (a, b, c, (mpfr_rnd_t) r); if (!mpfr_overflow_p ()) { printf ("No overflow in check_overflow\n"); @@ -690,7 +690,7 @@ check_1111 (void) int m = 512; int sb, sc; int inex_a, inex_s; - mp_rnd_t rnd_mode; + mpfr_rnd_t rnd_mode; prec_a = MPFR_PREC_MIN + (randlimb () % m); prec_b = MPFR_PREC_MIN + (randlimb () % m); @@ -789,7 +789,7 @@ check_1minuseps (void) mpfr_set_ui (c, 1, MPFR_RNDN); mpfr_div_ui (c, c, prec_a[ia] + supp_b[ic], MPFR_RNDN); - inex_a = test_add (a, b, c, (mp_rnd_t) rnd_mode); + inex_a = test_add (a, b, c, (mpfr_rnd_t) rnd_mode); mpfr_init2 (s, 256); inex_s = test_add (s, b, c, MPFR_RNDN); /* exact */ if (inex_s) @@ -798,7 +798,7 @@ check_1minuseps (void) "(ia = %u, ib = %u, ic = %u)\n", ia, ib, ic); exit (1); } - inex_s = mpfr_prec_round (s, prec_a[ia], (mp_rnd_t) rnd_mode); + inex_s = mpfr_prec_round (s, prec_a[ia], (mpfr_rnd_t) rnd_mode); if ((inex_a < 0 && inex_s >= 0) || (inex_a == 0 && inex_s != 0) || (inex_a > 0 && inex_s <= 0) || |