diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2008-06-09 16:21:34 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2008-06-09 16:21:34 +0000 |
commit | f0ba2dca71d2bf160ede2c02824b36796f3b7b2b (patch) | |
tree | 818bc126517334c30221369a1182e6dbf3dd6fd7 /tests/texp2.c | |
parent | a6e5947f82762f85d2ade11f9b4153bba4774eeb (diff) | |
download | mpfr-f0ba2dca71d2bf160ede2c02824b36796f3b7b2b.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/texp2.c')
-rw-r--r-- | tests/texp2.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/texp2.c b/tests/texp2.c index 2c750c401..7b83ffb51 100644 --- a/tests/texp2.c +++ b/tests/texp2.c @@ -162,13 +162,13 @@ overflowed_exp2_0 (void) { mpfr_set_si_2exp (x, i, -512 * ABS (i), GMP_RNDN); mpfr_clear_flags (); - inex = mpfr_exp2 (x, x, rnd); + inex = mpfr_exp2 (x, x, (mp_rnd_t) rnd); if ((i >= 0 || emax < 0 || rnd == GMP_RNDN || rnd == GMP_RNDU) && ! mpfr_overflow_p ()) { printf ("Error in overflowed_exp2_0 (i = %d, rnd = %s):\n" " The overflow flag is not set.\n", - i, mpfr_print_rnd_mode (rnd)); + i, mpfr_print_rnd_mode ((mp_rnd_t) rnd)); err = 1; } if (rnd == GMP_RNDZ || rnd == GMP_RNDD) @@ -177,13 +177,13 @@ overflowed_exp2_0 (void) { printf ("Error in overflowed_exp2_0 (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 (! mpfr_equal_p (x, y)) { printf ("Error in overflowed_exp2_0 (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 0.11111111E%d.\n", emax); err = 1; @@ -195,13 +195,13 @@ overflowed_exp2_0 (void) { printf ("Error in overflowed_exp2_0 (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; } if (! (mpfr_inf_p (x) && MPFR_SIGN (x) > 0)) { printf ("Error in overflowed_exp2_0 (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 +Inf.\n"); err = 1; |