Changeset 1433ecda in mainline for uspace/lib/softfloat/sub.c


Ignore:
Timestamp:
2018-04-04T15:42:37Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

File:
1 edited

Legend:

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

    r47b2d7e3 r1433ecda  
    5656
    5757        expdiff = a.parts.exp - b.parts.exp;
    58         if ((expdiff < 0 ) || ((expdiff == 0) &&
     58        if ((expdiff < 0) || ((expdiff == 0) &&
    5959            (a.parts.fraction < b.parts.fraction))) {
    6060                if (is_float32_nan(b)) {
     
    141141done:
    142142        /* TODO: find first nonzero digit and shift result and detect possibly underflow */
    143         while ((exp1 > 0) && (!(frac1 & (FLOAT32_HIDDEN_BIT_MASK << 6 )))) {
     143        while ((exp1 > 0) && (!(frac1 & (FLOAT32_HIDDEN_BIT_MASK << 6)))) {
    144144                --exp1;
    145145                frac1 <<= 1;
     
    180180
    181181        expdiff = a.parts.exp - b.parts.exp;
    182         if ((expdiff < 0 ) ||
     182        if ((expdiff < 0) ||
    183183            ((expdiff == 0) && (a.parts.fraction < b.parts.fraction))) {
    184184                if (is_float64_nan(b)) {
     
    265265done:
    266266        /* TODO: find first nonzero digit and shift result and detect possibly underflow */
    267         while ((exp1 > 0) && (!(frac1 & (FLOAT64_HIDDEN_BIT_MASK << 6 )))) {
     267        while ((exp1 > 0) && (!(frac1 & (FLOAT64_HIDDEN_BIT_MASK << 6)))) {
    268268                --exp1;
    269269                frac1 <<= 1;
     
    305305
    306306        expdiff = a.parts.exp - b.parts.exp;
    307         if ((expdiff < 0 ) || ((expdiff == 0) &&
     307        if ((expdiff < 0) || ((expdiff == 0) &&
    308308            lt128(a.parts.frac_hi, a.parts.frac_lo, b.parts.frac_hi, b.parts.frac_lo))) {
    309309                if (is_float128_nan(b)) {
     
    418418
    419419        lshift128(FLOAT128_HIDDEN_BIT_MASK_HI, FLOAT128_HIDDEN_BIT_MASK_LO, 7,
    420            &tmp_hi, &tmp_lo);
     420            &tmp_hi, &tmp_lo);
    421421        and128(frac1_hi, frac1_lo, tmp_hi, tmp_lo, &tmp_hi, &tmp_lo);
    422422        if (lt128(0x0ll, 0x0ll, tmp_hi, tmp_lo)) {
Note: See TracChangeset for help on using the changeset viewer.