diff options
Diffstat (limited to 'tests/tsqr.c')
-rw-r--r-- | tests/tsqr.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/tsqr.c b/tests/tsqr.c index 15f153d01..025c434d1 100644 --- a/tests/tsqr.c +++ b/tests/tsqr.c @@ -35,7 +35,7 @@ inexact_sign (int x) } static void -error1 (mp_rnd_t rnd, mpfr_prec_t prec, +error1 (mpfr_rnd_t rnd, mpfr_prec_t prec, mpfr_t in, mpfr_t outmul, mpfr_t outsqr) { printf("ERROR: for %s and prec=%lu\nINPUT=", mpfr_print_rnd_mode(rnd), prec); @@ -46,7 +46,7 @@ error1 (mp_rnd_t rnd, mpfr_prec_t prec, } static void -error2 (mp_rnd_t rnd, mpfr_prec_t prec, mpfr_t in, mpfr_t out, +error2 (mpfr_rnd_t rnd, mpfr_prec_t prec, mpfr_t in, mpfr_t out, int inexactmul, int inexactsqr) { printf("ERROR: for %s and prec=%lu\nINPUT=", mpfr_print_rnd_mode(rnd), prec); @@ -70,12 +70,12 @@ check_random (mpfr_prec_t p) if (MPFR_IS_PURE_FP(x)) for (r = 0 ; r < MPFR_RND_MAX ; r++) { - inexact1 = mpfr_mul (y, x, x, (mp_rnd_t) r); - inexact2 = mpfr_sqr (z, x, (mp_rnd_t) r); + inexact1 = mpfr_mul (y, x, x, (mpfr_rnd_t) r); + inexact2 = mpfr_sqr (z, x, (mpfr_rnd_t) r); if (mpfr_cmp (y, z)) - error1 ((mp_rnd_t) r,p,x,y,z); + error1 ((mpfr_rnd_t) r,p,x,y,z); if (inexact_sign (inexact1) != inexact_sign (inexact2)) - error2 ((mp_rnd_t) r,p,x,y,inexact1,inexact2); + error2 ((mpfr_rnd_t) r,p,x,y,inexact1,inexact2); } } mpfr_clears (x, y, z, (mpfr_ptr) 0); |