Changeset aa59fa0 in mainline for softfloat/generic/common.c


Ignore:
Timestamp:
2006-03-16T00:32:41Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
585819d
Parents:
69cdeec
Message:

SoftFloat integrated into HelenOS uspace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • softfloat/generic/common.c

    r69cdeec raa59fa0  
    5757 * @return valied float64
    5858 */
    59 float64 finishFloat64(__s32 cexp, __u64 cfrac, char sign)
     59float64 finishFloat64(int32_t cexp, uint64_t cfrac, char sign)
    6060{
    6161        float64 result;
     
    109109        }
    110110
    111         result.parts.exp = (__u32)cexp;
     111        result.parts.exp = (uint32_t)cexp;
    112112       
    113113        result.parts.fraction = ((cfrac >>(64 - FLOAT64_FRACTION_SIZE - 2 ) ) & (~FLOAT64_HIDDEN_BIT_MASK));
     
    119119 * @param i
    120120 */
    121 int countZeroes64(__u64 i)
     121int countZeroes64(uint64_t i)
    122122{
    123123        int j;
     
    134134 * @param i
    135135 */
    136 int countZeroes32(__u32 i)
     136int countZeroes32(uint32_t i)
    137137{
    138138        int j;
     
    149149 * @param i
    150150 */
    151 int countZeroes8(__u8 i)
     151int countZeroes8(uint8_t i)
    152152{
    153153        return zeroTable[i];
     
    158158 * @param fraction part with hidden bit shifted to 30. bit
    159159 */
    160 void roundFloat32(__s32 *exp, __u32 *fraction)
     160void roundFloat32(int32_t *exp, uint32_t *fraction)
    161161{
    162162        /* rounding - if first bit after fraction is set then round up */
     
    183183 * @param fraction part with hidden bit shifted to 62. bit
    184184 */
    185 void roundFloat64(__s32 *exp, __u64 *fraction)
     185void roundFloat64(int32_t *exp, uint64_t *fraction)
    186186{
    187187        /* rounding - if first bit after fraction is set then round up */
Note: See TracChangeset for help on using the changeset viewer.