summaryrefslogtreecommitdiff
path: root/tests/tcos.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/tcos.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/tcos.c')
-rw-r--r--tests/tcos.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tcos.c b/tests/tcos.c
index 2a45de1d9..60963a879 100644
--- a/tests/tcos.c
+++ b/tests/tcos.c
@@ -38,12 +38,12 @@ check53 (double x, double cos_x, mp_rnd_t rnd_mode)
mpfr_init2 (c, 53);
mpfr_set_d (xx, x, rnd_mode); /* should be exact */
mpfr_cos (c, xx, rnd_mode);
- if (mpfr_get_d (c) != cos_x && (!isnan(cos_x) || !mpfr_nan_p(c)))
+ if (mpfr_get_d1 (c) != cos_x && (!isnan(cos_x) || !mpfr_nan_p(c)))
{
fprintf (stderr, "mpfr_cos failed for x=%1.20e, rnd=%s\n", x,
mpfr_print_rnd_mode (rnd_mode));
fprintf (stderr, "mpfr_cos gives cos(x)=%1.20e, expected %1.20e\n",
- mpfr_get_d (c), cos_x);
+ mpfr_get_d1 (c), cos_x);
exit (1);
}
mpfr_clear (xx);