Changeset 56a39dde in mainline for softfloat/generic/conversion.c


Ignore:
Timestamp:
2006-01-09T20:43:12Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ecfd7e5
Parents:
feef1cd
Message:

Bugfixes in softfloat conversion functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • softfloat/generic/conversion.c

    rfeef1cd r56a39dde  
    6060                        --result.parts.exp;
    6161                };
     62               
     63                ++result.parts.exp;
    6264                result.parts.mantisa = mant;
    6365        };
     
    109111               
    110112                exp *= -1;     
    111                
    112113                if (exp > FLOAT32_MANTISA_SIZE ) {
    113114                        /* FIXME: underflow */
     
    118119                /* denormalized */
    119120               
    120                 mant = result.parts.mantisa >> 1;
     121                mant = a.parts.mantisa;
    121122                mant |= 0x10000000000000ll; /* denormalize and set hidden bit */
     123               
     124                mant >>= (FLOAT64_MANTISA_SIZE - FLOAT32_MANTISA_SIZE + 1);
    122125               
    123126                while (exp > 0) {
Note: See TracChangeset for help on using the changeset viewer.