summaryrefslogtreecommitdiff
path: root/tests/tcoth.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2008-06-09 16:21:34 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2008-06-09 16:21:34 +0000
commit848beb58ea198fd097580c88aad2e3a1710ea2f6 (patch)
tree818bc126517334c30221369a1182e6dbf3dd6fd7 /tests/tcoth.c
parentf4f81f4b9304078e5d484c52209031391c57bb03 (diff)
downloadmpfr-848beb58ea198fd097580c88aad2e3a1710ea2f6.tar.gz
Clean-up and various changes to be able to build MPFR with g++.
But the following 3 tests currently fail with g++ 4.3.1: FAIL: tprintf FAIL: tsprintf FAIL: tfprintf This is an "Illegal instruction" error, so probably a bug in g++. [Edit: acinclude.m4 now uses gl_SIZE_MAX, typically from size_max.m4, but which is not installed on all machines; this will be added to the MPFR repository in changesets 5680 and 5683.] git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5385 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tcoth.c')
-rw-r--r--tests/tcoth.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/tcoth.c b/tests/tcoth.c
index 22f517637..999eb41ff 100644
--- a/tests/tcoth.c
+++ b/tests/tcoth.c
@@ -149,13 +149,13 @@ underflowed_cothinf (void)
mpfr_set_inf (x, i);
mpfr_clear_flags ();
set_emin (2); /* 1 is not representable. */
- inex = mpfr_coth (x, x, rnd);
+ inex = mpfr_coth (x, x, (mp_rnd_t) rnd);
set_emin (old_emin);
if (! mpfr_underflow_p ())
{
printf ("Error in underflowed_cothinf (i = %d, rnd = %s):\n"
" The underflow flag is not set.\n",
- i, mpfr_print_rnd_mode (rnd));
+ i, mpfr_print_rnd_mode ((mp_rnd_t) rnd));
err = 1;
}
mpfr_set_si (y, (i < 0 && rnd == GMP_RNDD) ||
@@ -166,7 +166,7 @@ underflowed_cothinf (void)
MPFR_MULT_SIGN (MPFR_SIGN (x), MPFR_SIGN (y)) > 0))
{
printf ("Error in underflowed_cothinf (i = %d, rnd = %s):\n"
- " Got ", i, mpfr_print_rnd_mode (rnd));
+ " Got ", i, mpfr_print_rnd_mode ((mp_rnd_t) rnd));
mpfr_print_binary (x);
printf (" instead of ");
mpfr_print_binary (y);
@@ -178,7 +178,7 @@ underflowed_cothinf (void)
{
printf ("Error in underflowed_cothinf (i = %d, rnd = %s):\n"
" The inexact value must be negative.\n",
- i, mpfr_print_rnd_mode (rnd));
+ i, mpfr_print_rnd_mode ((mp_rnd_t) rnd));
err = 1;
}
if ((rnd == GMP_RNDU ||
@@ -186,7 +186,7 @@ underflowed_cothinf (void)
{
printf ("Error in underflowed_cothinf (i = %d, rnd = %s):\n"
" The inexact value must be positive.\n",
- i, mpfr_print_rnd_mode (rnd));
+ i, mpfr_print_rnd_mode ((mp_rnd_t) rnd));
err = 1;
}
}