Re: MPFR precision when FLT_RADIX != 2

2006-12-04 Thread Steve Kargl
On Sun, Dec 03, 2006 at 12:44:11PM -0500, Kaveh R. GHAZI wrote: > > I'm not sure if these issues come up for fortran in prior releases. I > think i370 was removed before 4.0/f95 and decimal floats were added in > 4.2, which is not yet released. > This issue hasn't come up yet. In gfc_arith_ini

Re: MPFR precision when FLT_RADIX != 2

2006-12-04 Thread Geert Bosch
On Dec 3, 2006, at 12:44, Kaveh R. GHAZI wrote: In case i370 support is revived or a format not using base==2 is introduced, I could proactively fix the MPFR precision setting for any base that is a power of 2 by multiplying the target float precision by log2(base). In the i370 case I would mu

MPFR precision when FLT_RADIX != 2

2006-12-03 Thread Kaveh R. GHAZI
When GCC uses MPFR in the middle-end, it sets the precision of the MPFR variables used for intermediate calculations to the "p" field of the target float format. We need the precision of the MPFR variables to be exactly the same number of bits as the target float format so we can determine when th