mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-16 02:20:27 +08:00
floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.
* floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case. From-SVN: r113228
This commit is contained in:
parent
e551ad2608
commit
9fff64328d
@ -1,3 +1,7 @@
|
||||
2006-04-24 Julian Brown <julian@codesourcery.com>
|
||||
|
||||
* floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.
|
||||
|
||||
2006-03-29 Jim Blandy <jimb@codesourcery.com>
|
||||
|
||||
* pex-common.c (pex_input_file, pex_input_pipe): New functions.
|
||||
|
@ -394,7 +394,7 @@ floatformat_to_double (const struct floatformat *fmt,
|
||||
|
||||
/* Handle denormalized numbers. FIXME: What should we do for
|
||||
non-IEEE formats? */
|
||||
if (exponent == 0 && mant != 0)
|
||||
if (special_exponent && exponent == 0 && mant != 0)
|
||||
dto += ldexp ((double)mant,
|
||||
(- fmt->exp_bias
|
||||
- mant_bits
|
||||
|
Loading…
x
Reference in New Issue
Block a user