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/tget_str.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/tget_str.c')
-rw-r--r-- | tests/tget_str.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/tget_str.c b/tests/tget_str.c index 76072a807..86fea8707 100644 --- a/tests/tget_str.c +++ b/tests/tget_str.c @@ -29,7 +29,7 @@ check3 (char *d, mpfr_rnd_t rnd, char *res) { mpfr_t x; char *str; - mp_exp_t e; + mpfr_exp_t e; mpfr_init2 (x, 53); mpfr_set_str (x, d, 10, rnd); @@ -49,7 +49,7 @@ check_small (void) { mpfr_t x; char *s; - mp_exp_t e; + mpfr_exp_t e; mpfr_prec_t p; mpfr_init (x); @@ -989,7 +989,7 @@ check_large (void) '3', '7', '2', '2', '7', '5', '6', '2', '3', '1', '2', '1', '3', '1', '4', '2', '6', '9', '2', '3', '\0' }; - mp_exp_t e; + mpfr_exp_t e; mpfr_init2 (x, 3322); mpfr_set_str (x, xm, 10, MPFR_RNDN); @@ -1077,7 +1077,7 @@ check_special (int b, mpfr_prec_t p) mpfr_t x; int i, j; char s[MAX_DIGITS + 2], s2[MAX_DIGITS + 2], c; - mp_exp_t e; + mpfr_exp_t e; int r; size_t m; @@ -1156,7 +1156,7 @@ check_bug_base2k (void) */ mpfr_t xx, yy, zz; char *s; - mp_exp_t e; + mpfr_exp_t e; mpfr_init2 (xx, 107); mpfr_init2 (yy, 79); @@ -1181,7 +1181,7 @@ check_reduced_exprange (void) { mpfr_t x; char *s; - mp_exp_t emax, e; + mpfr_exp_t emax, e; emax = mpfr_get_emax (); mpfr_init2 (x, 8); @@ -1208,7 +1208,7 @@ main (int argc, char *argv[]) mpfr_t x; mpfr_rnd_t r; char s[MAX_DIGITS + 2]; - mp_exp_t e, f; + mpfr_exp_t e, f; size_t m; mpfr_prec_t p; int i; @@ -1230,7 +1230,7 @@ main (int argc, char *argv[]) { m = 2 + (randlimb () % (MAX_DIGITS - 1)); mpfr_urandomb (x, RANDS); - e = (mp_exp_t) (randlimb () % 21) - 10; + e = (mpfr_exp_t) (randlimb () % 21) - 10; mpfr_set_exp (x, (e == -10) ? mpfr_get_emin () : ((e == 10) ? mpfr_get_emax () : e)); b = 2 + (randlimb () % 35); |