diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-05-07 15:13:02 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-05-07 15:13:02 +0000 |
commit | 3ffa08c3f9f5d2790dca53a5a39f95ab54390acd (patch) | |
tree | de0193ea3a91c163a9b23921b1517e85905403b0 /tests/tset_z_exp.c | |
parent | 5b51d2ffc3e7364b683023047aaffc78d1a894a6 (diff) | |
download | mpfr-3ffa08c3f9f5d2790dca53a5a39f95ab54390acd.tar.gz |
New exponent type mpfr_exp_t for MPFR (replacing GMP's mp_exp_t).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6789 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tset_z_exp.c')
-rw-r--r-- | tests/tset_z_exp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/tset_z_exp.c b/tests/tset_z_exp.c index 6126378d9..c2e35c58a 100644 --- a/tests/tset_z_exp.c +++ b/tests/tset_z_exp.c @@ -26,10 +26,10 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #include "mpfr-test.h" -static mp_exp_t +static mpfr_exp_t randexp (void) { - return (mp_exp_t) (randlimb () % (__gmpfr_emax - __gmpfr_emin)) + return (mpfr_exp_t) (randlimb () % (__gmpfr_emax - __gmpfr_emin)) + __gmpfr_emin; } @@ -39,7 +39,7 @@ check0 (void) mpz_t y; mpfr_t x; int inexact, r; - mp_exp_t e; + mpfr_exp_t e; /* Check for +0 */ mpfr_init (x); @@ -69,7 +69,7 @@ check (long i, mpfr_rnd_t rnd) { mpfr_t f; mpz_t z; - mp_exp_t e; + mpfr_exp_t e; mpfr_init2 (f, 8 * sizeof(long)); mpz_init (z); |