File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -215,12 +215,14 @@ extension ${Self}: BinaryFloatingPoint {
215
215
exponentBitPattern: UInt,
216
216
significandBitPattern: ${ RawSignificand} ) {
217
217
let signShift = ${ Self} . significandBitCount + ${ Self} . exponentBitCount
218
- let sign = ${ RawSignificand} ( sign == . minus ? 1 : 0 )
219
- let exponent = ${ RawSignificand} ( exponentBitPattern &
220
- ${ Self} . _infinityExponent)
221
- let significand = significandBitPattern & ${ Self} . _significandMask
222
- self . init ( bitPattern: sign << ${ RawSignificand} ( signShift) |
223
- exponent << ${ RawSignificand} ( ${ Self} . significandBitCount) |
218
+ let sign = UInt ${ bits} ( sign == . minus ? 1 : 0 )
219
+ let exponent = UInt ${ bits} (
220
+ exponentBitPattern & ${ Self} . _infinityExponent)
221
+ let significand = UInt ${ bits} (
222
+ significandBitPattern & ${ Self} . _significandMask)
223
+ self . init ( bitPattern:
224
+ sign << UInt${ bits} ( signShift) |
225
+ exponent << UInt${ bits} ( ${ Self} . significandBitCount) |
224
226
significand)
225
227
}
226
228
You can’t perform that action at this time.
0 commit comments