Changeset aa59fa0 in mainline for softfloat/generic/common.c
- Timestamp:
- 2006-03-16T00:32:41Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 585819d
- Parents:
- 69cdeec
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
softfloat/generic/common.c
r69cdeec raa59fa0 57 57 * @return valied float64 58 58 */ 59 float64 finishFloat64( __s32 cexp, __u64cfrac, char sign)59 float64 finishFloat64(int32_t cexp, uint64_t cfrac, char sign) 60 60 { 61 61 float64 result; … … 109 109 } 110 110 111 result.parts.exp = ( __u32)cexp;111 result.parts.exp = (uint32_t)cexp; 112 112 113 113 result.parts.fraction = ((cfrac >>(64 - FLOAT64_FRACTION_SIZE - 2 ) ) & (~FLOAT64_HIDDEN_BIT_MASK)); … … 119 119 * @param i 120 120 */ 121 int countZeroes64( __u64i)121 int countZeroes64(uint64_t i) 122 122 { 123 123 int j; … … 134 134 * @param i 135 135 */ 136 int countZeroes32( __u32i)136 int countZeroes32(uint32_t i) 137 137 { 138 138 int j; … … 149 149 * @param i 150 150 */ 151 int countZeroes8( __u8i)151 int countZeroes8(uint8_t i) 152 152 { 153 153 return zeroTable[i]; … … 158 158 * @param fraction part with hidden bit shifted to 30. bit 159 159 */ 160 void roundFloat32( __s32 *exp, __u32*fraction)160 void roundFloat32(int32_t *exp, uint32_t *fraction) 161 161 { 162 162 /* rounding - if first bit after fraction is set then round up */ … … 183 183 * @param fraction part with hidden bit shifted to 62. bit 184 184 */ 185 void roundFloat64( __s32 *exp, __u64*fraction)185 void roundFloat64(int32_t *exp, uint64_t *fraction) 186 186 { 187 187 /* rounding - if first bit after fraction is set then round up */
Note:
See TracChangeset
for help on using the changeset viewer.