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/tpow.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/tpow.c')
-rw-r--r-- | tests/tpow.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tpow.c b/tests/tpow.c index e4f896440..5ce949dbf 100644 --- a/tests/tpow.c +++ b/tests/tpow.c @@ -635,7 +635,7 @@ special (void) mpfr_set_inf (x, -1); mpfr_set_prec (y, 2 * mp_bits_per_limb); mpfr_set_ui (y, 1, MPFR_RNDN); - mpfr_mul_2exp (y, y, mp_bits_per_limb - 1, MPFR_RNDN); + mpfr_mul_2ui (y, y, mp_bits_per_limb - 1, MPFR_RNDN); /* y = 2^(mp_bits_per_limb - 1) */ test_pow (z, x, y, MPFR_RNDN); MPFR_ASSERTN(mpfr_inf_p (z) && MPFR_IS_POS(z)); @@ -644,7 +644,7 @@ special (void) /* y = 2^(mp_bits_per_limb - 1) + epsilon */ MPFR_ASSERTN(mpfr_inf_p (z) && MPFR_IS_POS(z)); mpfr_nextbelow (y); - mpfr_div_2exp (y, y, 1, MPFR_RNDN); + mpfr_div_2ui (y, y, 1, MPFR_RNDN); mpfr_nextabove (y); test_pow (z, x, y, MPFR_RNDN); /* y = 2^(mp_bits_per_limb - 2) + epsilon */ |