Changeset 1b20da0 in mainline for uspace/lib/softfloat/div.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/div.c

    rdf6ded8 r1b20da0  
    151151       
    152152        cfrac = (afrac << 32) / bfrac;
    153         if ((cfrac & 0x3F) == 0) { 
     153        if ((cfrac & 0x3F) == 0) {
    154154                cfrac |= (bfrac * cfrac != afrac << 32);
    155155        }
     
    195195        }
    196196       
    197         result.parts.fraction = ((cfrac >> 6) & (~FLOAT32_HIDDEN_BIT_MASK)); 
     197        result.parts.fraction = ((cfrac >> 6) & (~FLOAT32_HIDDEN_BIT_MASK));
    198198       
    199199        return result;
     
    208208 *
    209209 */
    210 float64 div_float64(float64 a, float64 b) 
     210float64 div_float64(float64 a, float64 b)
    211211{
    212212        float64 result;
    213213        int64_t aexp, bexp, cexp;
    214         uint64_t afrac, bfrac, cfrac; 
     214        uint64_t afrac, bfrac, cfrac;
    215215        uint64_t remlo, remhi;
    216216        uint64_t tmplo, tmphi;
     
    291291                /* normalize it*/
    292292                aexp++;
    293                 /* afrac is nonzero => it must stop */ 
     293                /* afrac is nonzero => it must stop */
    294294                while (!(afrac & FLOAT64_HIDDEN_BIT_MASK)) {
    295295                        afrac <<= 1;
     
    300300        if (bexp == 0) {
    301301                bexp++;
    302                 /* bfrac is nonzero => it must stop */ 
     302                /* bfrac is nonzero => it must stop */
    303303                while (!(bfrac & FLOAT64_HIDDEN_BIT_MASK)) {
    304304                        bfrac <<= 1;
     
    315315        }
    316316       
    317         cexp = aexp - bexp + FLOAT64_BIAS - 2; 
     317        cexp = aexp - bexp + FLOAT64_BIAS - 2;
    318318       
    319319        cfrac = div128est(afrac, 0x0ll, bfrac);
Note: See TracChangeset for help on using the changeset viewer.