summaryrefslogtreecommitdiff
path: root/tests/tmul_2exp.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2004-02-13 12:31:49 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2004-02-13 12:31:49 +0000
commit1ee53787a2a1e7d7253054434bce79dae59dc270 (patch)
treed89285cdddf28f09ef3aec957e328854c48c6b63 /tests/tmul_2exp.c
parentc70a49d29af3528fbcec09f605a053e25dbaeded (diff)
downloadmpfr-1ee53787a2a1e7d7253054434bce79dae59dc270.tar.gz
Replaced mpfr_mul_2exp and mpfr_div_2exp by mpfr_mul_2ui and
mpfr_div_2ui as the 2exp form is obsolete. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2703 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tmul_2exp.c')
-rw-r--r--tests/tmul_2exp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/tmul_2exp.c b/tests/tmul_2exp.c
index ebe6d49f5..d3fa5314f 100644
--- a/tests/tmul_2exp.c
+++ b/tests/tmul_2exp.c
@@ -1,4 +1,4 @@
-/* Test file for mpfr_mul_2exp.
+/* Test file for mpfr_{mul,div}_2{ui,si}.
Copyright 1999, 2001, 2002, 2003, 2004 Free Software Foundation.
@@ -44,7 +44,7 @@ main (int argc, char *argv[])
mpfr_inits2(53, w, z, NULL);
mpfr_set_inf (w, 1);
- mpfr_mul_2exp (w, w, 10, GMP_RNDZ);
+ mpfr_mul_2ui (w, w, 10, GMP_RNDZ);
if (!MPFR_IS_INF(w))
{
printf ("Inf != Inf");
@@ -52,7 +52,7 @@ main (int argc, char *argv[])
}
mpfr_set_nan (w);
- mpfr_mul_2exp (w, w, 10, GMP_RNDZ);
+ mpfr_mul_2ui (w, w, 10, GMP_RNDZ);
if (!MPFR_IS_NAN(w))
{
printf ("NaN != NaN");
@@ -62,7 +62,7 @@ main (int argc, char *argv[])
for( k = 0 ; k < numberof(val) ; k+=3 )
{
mpfr_set_str (w, val[k], 16, GMP_RNDN);
- mpfr_mul_2exp (z, w, 10, GMP_RNDZ);
+ mpfr_mul_2ui (z, w, 10, GMP_RNDZ);
if (mpfr_cmp_str(z, val[k+1], 16, GMP_RNDN))
{
printf("ERROR for mpfr_mul_2ui for %s\n", val[k]);
@@ -72,7 +72,7 @@ main (int argc, char *argv[])
putchar('\n');
exit(-1);
}
- mpfr_div_2exp (z, w, 10, GMP_RNDZ);
+ mpfr_div_2ui (z, w, 10, GMP_RNDZ);
if (mpfr_cmp_str(z, val[k+2], 16, GMP_RNDN))
{
printf("ERROR for mpfr_div_2ui for %s\n"