Commit b8ffdd97 by Rainer Orth Committed by Rainer Orth

Use GMP_RNDN for portability to MPFR 2.4.2

	* gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
	of MPFR_RNDN.
	(format_floating): Likewise.

From-SVN: r240350
parent 195d1431
2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
of MPFR_RNDN.
(format_floating): Likewise.
2016-09-22 Jakub Jelinek <jakub@redhat.com>
PR fortran/77665
......
......@@ -1125,7 +1125,7 @@ format_floating_max (tree type, char spec)
round-to-nearest mode. */
mpfr_t x;
mpfr_init2 (x, rfmt->p);
mpfr_from_real (x, &rv, MPFR_RNDN);
mpfr_from_real (x, &rv, GMP_RNDN);
const char fmt[] = { '%', 'R', spec, '\0' };
int n = mpfr_snprintf (NULL, 0, fmt, x);
......@@ -1325,7 +1325,7 @@ format_floating (const conversion_spec &spec, tree arg)
round-to-nearest mode. */
mpfr_t mpfrval;
mpfr_init2 (mpfrval, rfmt->p);
mpfr_from_real (mpfrval, rvp, MPFR_RNDN);
mpfr_from_real (mpfrval, rvp, GMP_RNDN);
char fmtstr [40];
char *pfmt = fmtstr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment