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

    rdf6ded8 r1b20da0  
    5959 * Take fraction shifted by 10 bits to the left, round it, normalize it
    6060 * and detect exceptions
    61  * 
     61 *
    6262 * @param cexp Exponent with bias.
    6363 * @param cfrac Fraction shifted 10 bits to the left with added hidden bit.
     
    9393                }
    9494       
    95                 cfrac += (0x1 << (64 - FLOAT64_FRACTION_SIZE - 3)); 
     95                cfrac += (0x1 << (64 - FLOAT64_FRACTION_SIZE - 3));
    9696               
    9797                if (!(cfrac & (FLOAT64_HIDDEN_BIT_MASK << (64 - FLOAT64_FRACTION_SIZE - 1)))) {
     
    9999                            ((cfrac >> (64 - FLOAT64_FRACTION_SIZE - 2)) & (~FLOAT64_HIDDEN_BIT_MASK));
    100100                        return result;
    101                 }       
     101                }
    102102        } else {
    103                 cfrac += (0x1 << (64 - FLOAT64_FRACTION_SIZE - 3)); 
     103                cfrac += (0x1 << (64 - FLOAT64_FRACTION_SIZE - 3));
    104104        }
    105105       
     
    121121        result.parts.exp = (uint32_t) cexp;
    122122       
    123         result.parts.fraction = 
     123        result.parts.fraction =
    124124            ((cfrac >> (64 - FLOAT64_FRACTION_SIZE - 2)) & (~FLOAT64_HIDDEN_BIT_MASK));
    125125       
    126         return result; 
     126        return result;
    127127}
    128128
    129129/**
    130130 * Take fraction, round it, normalize it and detect exceptions
    131  * 
     131 *
    132132 * @param cexp Exponent with bias.
    133133 * @param cfrac_hi High part of the fraction shifted 14 bits to the left
     
    139139 * @return Finished quadruple-precision float.
    140140 */
    141 float128 finish_float128(int32_t cexp, uint64_t cfrac_hi, uint64_t cfrac_lo, 
     141float128 finish_float128(int32_t cexp, uint64_t cfrac_hi, uint64_t cfrac_lo,
    142142    char sign, uint64_t shift_out)
    143143{
     
    228228        result.parts.frac_lo = tmp_lo;
    229229
    230         return result; 
     230        return result;
    231231}
    232232
     
    242242}
    243243
    244 /** 
     244/**
    245245 * Counts leading zeroes in 32bit unsigned integer.
    246246 *
     
    290290        (*fraction) += (0x1 << (32 - FLOAT32_FRACTION_SIZE - 3));
    291291       
    292         if ((*fraction) & 
     292        if ((*fraction) &
    293293            (FLOAT32_HIDDEN_BIT_MASK << (32 - FLOAT32_FRACTION_SIZE - 1))) {
    294294                /* rounding overflow */
     
    324324       
    325325        /* See if there was a carry to bit 63. */
    326         if ((*fraction) & 
     326        if ((*fraction) &
    327327            (FLOAT64_HIDDEN_BIT_MASK << (64 - FLOAT64_FRACTION_SIZE - 1))) {
    328328                /* rounding overflow */
     
    589589/**
    590590 * Multiplication of two 64-bit unsigned integers.
    591  * 
     591 *
    592592 * @param a First input operand.
    593593 * @param b Second input operand.
     
    622622/**
    623623 * Multiplication of two 128-bit unsigned integers.
    624  * 
     624 *
    625625 * @param a_hi High part of the first input operand.
    626626 * @param a_lo Low part of the first input operand.
     
    656656 * Estimate the quotient of 128-bit unsigned divident and 64-bit unsigned
    657657 * divisor.
    658  * 
     658 *
    659659 * @param a_hi High part of the divident.
    660660 * @param a_lo Low part of the divident.
Note: See TracChangeset for help on using the changeset viewer.