summaryrefslogtreecommitdiff
path: root/tests/tsin_cos.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/tsin_cos.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/tsin_cos.c')
-rw-r--r--tests/tsin_cos.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/tsin_cos.c b/tests/tsin_cos.c
index 424011908..cc39cb1c7 100644
--- a/tests/tsin_cos.c
+++ b/tests/tsin_cos.c
@@ -189,18 +189,18 @@ overflowed_sin_cos0 (void)
mpfr_set_si (x, 0, GMP_RNDN);
mpfr_neg (x, x, GMP_RNDN);
mpfr_clear_flags ();
- inex = mpfr_sin_cos (x, y, x, rnd);
+ inex = mpfr_sin_cos (x, y, x, (mp_rnd_t) rnd);
if (! mpfr_overflow_p ())
{
printf ("Error in overflowed_sin_cos0 (rnd = %s):\n"
" The overflow flag is not set.\n",
- mpfr_print_rnd_mode (rnd));
+ mpfr_print_rnd_mode ((mp_rnd_t) rnd));
err = 1;
}
if (! (mpfr_zero_p (x) && MPFR_SIGN (x) < 0))
{
printf ("Error in overflowed_sin_cos0 (rnd = %s):\n"
- " Got sin = ", mpfr_print_rnd_mode (rnd));
+ " Got sin = ", mpfr_print_rnd_mode ((mp_rnd_t) rnd));
mpfr_print_binary (x);
printf (" instead of -0.\n");
err = 1;
@@ -211,13 +211,14 @@ overflowed_sin_cos0 (void)
{
printf ("Error in overflowed_sin_cos0 (rnd = %s):\n"
" The inexact value must be non-zero.\n",
- mpfr_print_rnd_mode (rnd));
+ mpfr_print_rnd_mode ((mp_rnd_t) rnd));
err = 1;
}
if (! mpfr_equal_p (y, z))
{
printf ("Error in overflowed_sin_cos0 (rnd = %s):\n"
- " Got cos = ", mpfr_print_rnd_mode (rnd));
+ " Got cos = ",
+ mpfr_print_rnd_mode ((mp_rnd_t) rnd));
mpfr_print_binary (y);
printf (" instead of 0.11111111E%d.\n", emax);
err = 1;
@@ -229,13 +230,14 @@ overflowed_sin_cos0 (void)
{
printf ("Error in overflowed_sin_cos0 (rnd = %s):\n"
" The inexact value must be non-zero.\n",
- mpfr_print_rnd_mode (rnd));
+ mpfr_print_rnd_mode ((mp_rnd_t) rnd));
err = 1;
}
if (! (mpfr_inf_p (y) && MPFR_SIGN (y) > 0))
{
printf ("Error in overflowed_sin_cos0 (rnd = %s):\n"
- " Got cos = ", mpfr_print_rnd_mode (rnd));
+ " Got cos = ",
+ mpfr_print_rnd_mode ((mp_rnd_t) rnd));
mpfr_print_binary (y);
printf (" instead of +Inf.\n");
err = 1;