summaryrefslogtreecommitdiff
path: root/tests/tasin.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/tasin.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/tasin.c')
-rw-r--r--tests/tasin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tasin.c b/tests/tasin.c
index bcc4ebe2d..8933270e5 100644
--- a/tests/tasin.c
+++ b/tests/tasin.c
@@ -98,7 +98,7 @@ special (void)
mpfr_set_ui (x, 1, MPFR_RNDN); /* exact */
mpfr_asin (y, x, (mpfr_rnd_t) r);
mpfr_const_pi (x, (mpfr_rnd_t) r);
- mpfr_div_2exp (x, x, 1, MPFR_RNDN); /* exact */
+ mpfr_div_2ui (x, x, 1, MPFR_RNDN); /* exact */
if (mpfr_cmp (x, y))
{
printf ("Error: asin(1) != Pi/2 for rnd=%s\n",
@@ -114,7 +114,7 @@ special (void)
mpfr_asin (y, x, (mpfr_rnd_t) r);
mpfr_const_pi (x, MPFR_INVERT_RND((mpfr_rnd_t) r));
mpfr_neg (x, x, MPFR_RNDN); /* exact */
- mpfr_div_2exp (x, x, 1, MPFR_RNDN); /* exact */
+ mpfr_div_2ui (x, x, 1, MPFR_RNDN); /* exact */
if (mpfr_cmp (x, y))
{
printf ("Error: asin(-1) != -Pi/2 for rnd=%s\n",