summaryrefslogtreecommitdiff
path: root/tests/texp.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2018-09-05 10:20:36 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2018-09-05 10:20:36 +0000
commit4e895d89500fe926a7e0e992670b1e2fabb25e10 (patch)
tree590b77098cfc4d1af08aa991b73a20fbfa786550 /tests/texp.c
parent5f3039ca80f175e4c3e055b39d9e3f0f5a1236da (diff)
downloadmpfr-4e895d89500fe926a7e0e992670b1e2fabb25e10.tar.gz
[src/exp_2.c] fix for 16-bit limb
[tests/texp.c] improve error message git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13135 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/texp.c')
-rw-r--r--tests/texp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/texp.c b/tests/texp.c
index 57fee2801..8755f019b 100644
--- a/tests/texp.c
+++ b/tests/texp.c
@@ -618,6 +618,8 @@ bug20080731 (void)
mpfr_set_str (x, "-2.c5c85fdf473de6af278ece700fcbdabd03cd0cb9ca62d8b62c@7",
16, MPFR_RNDN);
+ /* exp(x) is just below 0xf.fffffffffffffffp-1073741828 */
+
mpfr_init2 (y1, prec);
mpfr_exp (y1, x, MPFR_RNDU);
@@ -629,9 +631,9 @@ bug20080731 (void)
if (mpfr_cmp0 (y1, y2) != 0)
{
printf ("Error in bug20080731\nExpected ");
- mpfr_out_str (stdout, 16, 0, y2, MPFR_RNDN);
+ mpfr_dump (y2);
printf ("\nGot ");
- mpfr_out_str (stdout, 16, 0, y1, MPFR_RNDN);
+ mpfr_dump (y1);
printf ("\n");
exit (1);
}