diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-04-17 01:51:13 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-04-17 01:51:13 +0000 |
commit | 2203e6799e515dc9a75b2ce70c40c0773e56c62c (patch) | |
tree | 660632d67aeedf85e9586e4b3c9ab1fd31875615 /tests/tget_set_d64.c | |
parent | f570252f407b999b189a89bcca92ef74518c5df1 (diff) | |
download | mpfr-2203e6799e515dc9a75b2ce70c40c0773e56c62c.tar.gz |
Replaced mpfr_mul_2exp & mpfr_div_2exp by mpfr_mul_2ui & mpfr_div_2ui,
respectively (for the tests, except in reuse.c and in taway.c).
Note: As documented, mpfr_mul_2exp & mpfr_div_2exp are only kept for
compatibility with MPF; mpfr_mul_2ui & mpfr_div_2ui are preferred.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12607 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tget_set_d64.c')
-rw-r--r-- | tests/tget_set_d64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tget_set_d64.c b/tests/tget_set_d64.c index a5f149b6b..05191b95a 100644 --- a/tests/tget_set_d64.c +++ b/tests/tget_set_d64.c @@ -298,7 +298,7 @@ check_random (void) /* the normal decimal64 range contains [2^(-1272), 2^1278] */ mpfr_mul_2si (x, x, (i % 2550) - 1272, MPFR_RNDN); if (mpfr_get_exp (x) <= -1272) - mpfr_mul_2exp (x, x, -1271 - mpfr_get_exp (x), MPFR_RNDN); + mpfr_mul_2ui (x, x, -1271 - mpfr_get_exp (x), MPFR_RNDN); d = mpfr_get_decimal64 (x, MPFR_RNDN); mpfr_set_decimal64 (y, d, MPFR_RNDN); if (mpfr_cmp (x, y) != 0) |