diff options
author | enge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2010-06-11 16:15:19 +0000 |
---|---|---|
committer | enge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2010-06-11 16:15:19 +0000 |
commit | 45f72031003d79839a5817f433cd9eefb9496099 (patch) | |
tree | 4b8b4d5faf0bdfcedeb7f6e131ef654aea1ea6a7 /tests/random.c | |
parent | 6da2e2ea44628fb6b960826abcd922151a249fa1 (diff) | |
download | mpc-45f72031003d79839a5817f433cd9eefb9496099.tar.gz |
replaced mp_prec_t and mp_exp_p in test directory
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@779 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/random.c')
-rw-r--r-- | tests/random.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/random.c b/tests/random.c index ed31476..bf1e70e 100644 --- a/tests/random.c +++ b/tests/random.c @@ -110,7 +110,7 @@ test_end (void) equal to ZERO_PROBABILITY / 256. */ void -test_default_random (mpc_ptr z, mp_exp_t emin, mp_exp_t emax, +test_default_random (mpc_ptr z, mpfr_exp_t emin, mpfr_exp_t emax, unsigned int negative_probability, unsigned int zero_probability) { @@ -150,10 +150,10 @@ test_default_random (mpc_ptr z, mp_exp_t emin, mp_exp_t emax, mpfr_set_ui (MPC_IM (z), 0, GMP_RNDN); } if (!mpfr_zero_p (MPC_RE (z))) - mpfr_set_exp (MPC_RE (z), (mp_exp_t) gmp_urandomm_ui (rands, range) + emin); + mpfr_set_exp (MPC_RE (z), (mpfr_exp_t) gmp_urandomm_ui (rands, range) + emin); if (!mpfr_zero_p (MPC_IM (z))) - mpfr_set_exp (MPC_IM (z), (mp_exp_t) gmp_urandomm_ui (rands, range) + emin); + mpfr_set_exp (MPC_IM (z), (mpfr_exp_t) gmp_urandomm_ui (rands, range) + emin); if (negative_probability > 256) negative_probability = 256; |