summaryrefslogtreecommitdiff
path: root/tests/tconst_log2.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-04-07 00:38:47 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-04-07 00:38:47 +0000
commit9bf7d0a9a20f36a151c75442f5d40e29b1f8f959 (patch)
tree8ef85d212aed286d03a33cecb0f35e5d1d57497b /tests/tconst_log2.c
parent2c1213f578f342a6dd42d797ad292cb8da9154d0 (diff)
downloadmpfr-9bf7d0a9a20f36a151c75442f5d40e29b1f8f959.tar.gz
mpfr_get_d -> mpfr_get_d1 and mpfr_get_d2 -> mpfr_get_d.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1825 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tconst_log2.c')
-rw-r--r--tests/tconst_log2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tconst_log2.c b/tests/tconst_log2.c
index b3579bdca..875ebceb3 100644
--- a/tests/tconst_log2.c
+++ b/tests/tconst_log2.c
@@ -86,10 +86,10 @@ main (int argc, char *argv[])
/* check precision of 2 bits */
mpfr_set_prec (x, 2);
mpfr_const_log2 (x, GMP_RNDN);
- if (mpfr_get_d (x) != 0.75)
+ if (mpfr_get_d1 (x) != 0.75)
{
fprintf (stderr, "mpfr_const_log2 failed for prec=2, rnd=GMP_RNDN\n");
- fprintf (stderr, "expected 0.75, got %f\n", mpfr_get_d (x));
+ fprintf (stderr, "expected 0.75, got %f\n", mpfr_get_d1 (x));
exit (1);
}
@@ -104,7 +104,7 @@ main (int argc, char *argv[])
mpfr_set_prec (x, 53);
mpfr_const_log2 (x, rnd);
- if (mpfr_get_d(x) != 6.9314718055994530941e-1)
+ if (mpfr_get_d1 (x) != 6.9314718055994530941e-1)
{
fprintf (stderr, "mpfr_const_log2 failed for prec=53\n");
exit (1);