Changeset e6a40ac in mainline for softfloat/generic/add.c


Ignore:
Timestamp:
2006-02-10T02:40:49Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e979fea
Parents:
1a030b8
Message:

64bit float division added.
Some bugs fixed in 64bit multiplication and adding.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • softfloat/generic/add.c

    r1a030b8 re6a40ac  
    9090        if (exp2 == 0) {
    9191                /* second operand is denormalized */
    92                 --expdiff;     
     92                --expdiff;
    9393        } else {
    9494                /* add hidden bit to second operand */
     
    119119        };
    120120       
    121         if ((a.parts.exp == FLOAT32_MAX_EXPONENT ) || (a.parts.exp < exp1)) {
     121       
     122        if ((exp1 == FLOAT32_MAX_EXPONENT ) || (exp2 > exp1)) {
    122123                        /* overflow - set infinity as result */
    123124                        a.parts.exp = FLOAT32_MAX_EXPONENT;
Note: See TracChangeset for help on using the changeset viewer.