Changeset 1433ecda in mainline for uspace/lib/softfloat


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.

Location:
uspace/lib/softfloat
Files:
4 edited

Legend:

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

    r47b2d7e3 r1433ecda  
    383383
    384384        lshift128(FLOAT128_HIDDEN_BIT_MASK_HI, FLOAT128_HIDDEN_BIT_MASK_LO, 7,
    385            &tmp_hi, &tmp_lo);
     385            &tmp_hi, &tmp_lo);
    386386        and128(frac1_hi, frac1_lo, tmp_hi, tmp_lo, &tmp_hi, &tmp_lo);
    387387        if (lt128(0x0ll, 0x0ll, tmp_hi, tmp_lo)) {
     
    391391        }
    392392
    393         if ((exp1 == FLOAT128_MAX_EXPONENT ) || (exp2 > exp1)) {
     393        if ((exp1 == FLOAT128_MAX_EXPONENT) || (exp2 > exp1)) {
    394394                /* overflow - set infinity as result */
    395395                a.parts.exp = FLOAT64_MAX_EXPONENT;
  • uspace/lib/softfloat/common.c

    r47b2d7e3 r1433ecda  
    500500void not128(
    501501    uint64_t a_hi, uint64_t a_lo,
    502         uint64_t *r_hi, uint64_t *r_lo)
     502    uint64_t *r_hi, uint64_t *r_lo)
    503503{
    504504        *r_hi = ~a_hi;
  • uspace/lib/softfloat/div.c

    r47b2d7e3 r1433ecda  
    527527                }
    528528
    529                 cfrac_lo |= ((rem_hilo | rem_lohi | rem_lolo) != 0 );
     529                cfrac_lo |= ((rem_hilo | rem_lohi | rem_lolo) != 0);
    530530        }
    531531
  • 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.