Changeset 1b20da0 in mainline for uspace/lib/softfloat/add.c


Ignore:
Timestamp:
2018-02-28T17:52:03Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3061bc1
Parents:
df6ded8
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
Message:

style: Remove trailing whitespace on non-empty lines, in certain file types.

Command used: tools/srepl '\([^[:space:]]\)\s\+$' '\1' -- *.c *.h *.py *.sh *.s *.S *.ag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/softfloat/add.c

    rdf6ded8 r1b20da0  
    6060                }
    6161               
    62                 if (b.parts.exp == FLOAT32_MAX_EXPONENT) { 
     62                if (b.parts.exp == FLOAT32_MAX_EXPONENT) {
    6363                        return b;
    6464                }
     
    7777                }
    7878               
    79                 if (a.parts.exp == FLOAT32_MAX_EXPONENT) { 
     79                if (a.parts.exp == FLOAT32_MAX_EXPONENT) {
    8080                        return a;
    8181                }
     
    105105        } else {
    106106                /* add hidden bit to second operand */
    107                 frac2 |= FLOAT32_HIDDEN_BIT_MASK; 
     107                frac2 |= FLOAT32_HIDDEN_BIT_MASK;
    108108        }
    109109       
     
    129129        frac1 += (0x1 << 5);
    130130       
    131         if (frac1 & (FLOAT32_HIDDEN_BIT_MASK << 7)) { 
     131        if (frac1 & (FLOAT32_HIDDEN_BIT_MASK << 7)) {
    132132                /* rounding overflow */
    133133                ++exp1;
     
    145145       
    146146        /* Clear hidden bit and shift */
    147         a.parts.fraction = ((frac1 >> 6) & (~FLOAT32_HIDDEN_BIT_MASK)); 
     147        a.parts.fraction = ((frac1 >> 6) & (~FLOAT32_HIDDEN_BIT_MASK));
    148148        return a;
    149149}
     
    190190               
    191191                /* a is infinity and b not */
    192                 if (a.parts.exp == FLOAT64_MAX_EXPONENT) { 
     192                if (a.parts.exp == FLOAT64_MAX_EXPONENT) {
    193193                        return a;
    194194                }
     
    203203                /* both are denormalized */
    204204                frac1 += frac2;
    205                 if (frac1 & FLOAT64_HIDDEN_BIT_MASK) { 
     205                if (frac1 & FLOAT64_HIDDEN_BIT_MASK) {
    206206                        /* result is not denormalized */
    207207                        a.parts.exp = 1;
     
    217217        if (exp2 == 0) {
    218218                /* ... is denormalized */
    219                 --expdiff;     
     219                --expdiff;
    220220        } else {
    221221                /* is not denormalized */
     
    242242       
    243243        /* rounding - if first bit after fraction is set then round up */
    244         frac1 += (0x1 << 5); 
    245        
    246         if (frac1 & (FLOAT64_HIDDEN_BIT_MASK << 7)) { 
     244        frac1 += (0x1 << 5);
     245       
     246        if (frac1 & (FLOAT64_HIDDEN_BIT_MASK << 7)) {
    247247                /* rounding overflow */
    248248                ++exp1;
Note: See TracChangeset for help on using the changeset viewer.