summaryrefslogtreecommitdiff
path: root/tests/tsub.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-04-17 01:51:13 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-04-17 01:51:13 +0000
commit2203e6799e515dc9a75b2ce70c40c0773e56c62c (patch)
tree660632d67aeedf85e9586e4b3c9ab1fd31875615 /tests/tsub.c
parentf570252f407b999b189a89bcca92ef74518c5df1 (diff)
downloadmpfr-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/tsub.c')
-rw-r--r--tests/tsub.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/tsub.c b/tests/tsub.c
index 572f616c9..d9019b44c 100644
--- a/tests/tsub.c
+++ b/tests/tsub.c
@@ -337,7 +337,7 @@ check_diverse (void)
mpfr_set_prec (x, 33);
mpfr_set_ui (x, 1, MPFR_RNDN);
- mpfr_div_2exp (x, x, 32, MPFR_RNDN);
+ mpfr_div_2ui (x, x, 32, MPFR_RNDN);
mpfr_sub_ui (x, x, 1, MPFR_RNDN);
mpfr_set_prec (x, 5);
@@ -398,7 +398,7 @@ bug_ddefour(void)
mpfr_init2(tot1, 150);
mpfr_set_ui( ex, 1, MPFR_RNDN);
- mpfr_mul_2exp( ex, ex, 906, MPFR_RNDN);
+ mpfr_mul_2ui( ex, ex, 906, MPFR_RNDN);
mpfr_log( tot, ex, MPFR_RNDN);
mpfr_set( ex1, tot, MPFR_RNDN); /* ex1 = high(tot) */
test_sub( ex2, tot, ex1, MPFR_RNDN); /* ex2 = high(tot - ex1) */
@@ -481,10 +481,10 @@ check_inexact (void)
mpfr_set_prec (x, 2);
mpfr_set_ui (x, 6, MPFR_RNDN);
- mpfr_div_2exp (x, x, 4, MPFR_RNDN); /* x = 6/16 */
+ mpfr_div_2ui (x, x, 4, MPFR_RNDN); /* x = 6/16 */
mpfr_set_prec (y, 2);
mpfr_set_si (y, -1, MPFR_RNDN);
- mpfr_div_2exp (y, y, 4, MPFR_RNDN); /* y = -1/16 */
+ mpfr_div_2ui (y, y, 4, MPFR_RNDN); /* y = -1/16 */
inexact = test_sub (y, y, x, MPFR_RNDN); /* y = round(-7/16) = -1/2 */
if (inexact >= 0)
{
@@ -962,7 +962,7 @@ test_rndf_exact (mp_size_t pmax)
for (eb = 0; eb <= pmax + 3; eb ++)
{
mpfr_urandomb (b, RANDS);
- mpfr_mul_2exp (b, b, eb, MPFR_RNDN);
+ mpfr_mul_2ui (b, b, eb, MPFR_RNDN);
for (pc = MPFR_PREC_MIN; pc <= pmax; pc++)
{
if ((pc + 2) % GMP_NUMB_BITS > 4)