summaryrefslogtreecommitdiff
path: root/tests/tget_f.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/tget_f.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/tget_f.c')
-rw-r--r--tests/tget_f.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tget_f.c b/tests/tget_f.c
index 2face92c2..2a7abbf19 100644
--- a/tests/tget_f.c
+++ b/tests/tget_f.c
@@ -58,7 +58,7 @@ prec_test (void)
int inex;
mpf_div_2exp (x2, x2, 1);
mpf_add (x1, x1, x2);
- mpfr_div_2exp (y2, y2, 1, MPFR_RNDN);
+ mpfr_div_2ui (y2, y2, 1, MPFR_RNDN);
inex = mpfr_add (y1, y1, y2, MPFR_RNDN);
MPFR_ASSERTN (inex == 0);
mpfr_set_f (y3, x1, MPFR_RNDN);
@@ -329,7 +329,7 @@ main (void)
{
/* test with 2^(-e) */
mpfr_set_ui (y, 1, MPFR_RNDN);
- mpfr_div_2exp (y, y, e, MPFR_RNDN);
+ mpfr_div_2ui (y, y, e, MPFR_RNDN);
inex = mpfr_get_f (x, y, MPFR_RNDN);
mpf_mul_2exp (x, x, e);
if (inex != 0 || mpf_cmp_ui (x, 1) != 0)
@@ -345,7 +345,7 @@ main (void)
/* test with 2^(e) */
mpfr_set_ui (y, 1, MPFR_RNDN);
- mpfr_mul_2exp (y, y, e, MPFR_RNDN);
+ mpfr_mul_2ui (y, y, e, MPFR_RNDN);
inex = mpfr_get_f (x, y, MPFR_RNDN);
mpf_div_2exp (x, x, e);
if (inex != 0 || mpf_cmp_ui (x, 1) != 0)