Re: RFA: Support infinity, NaN, and denormalized numbers in floatformat.c

2012-08-17 Thread Ian Lance Taylor
On Thu, Aug 16, 2012 at 9:20 AM, Andreas Schwab wrote: > > * floatformat.c (floatformat_to_double): Correctly handle numbers > between 1 and 2. Simplify handling of denormal number. > (main): Test with 1.1. This is OK. Thanks. Ian

Re: RFA: Support infinity, NaN, and denormalized numbers in floatformat.c

2012-08-16 Thread Andreas Schwab
Ian Lance Taylor writes: > @@ -306,8 +359,18 @@ floatformat_to_double (fmt, from, to) >mant = get_field (ufrom, fmt->byteorder, fmt->totalsize, >mant_off, mant_bits); > > - dto += ldexp ((double)mant, exponent - mant_bits); > - exponent -= mant_bits; >