@@ -167,13 +167,13 @@ internal func _Float16ToASCII(
167167 // Step 1: Handle various input cases:
168168 let binaryExponent : Int
169169 let significand : Float16 . RawSignificand
170- let exponentBias = ( 1 << ( Float16 . exponentBitCount - 1 ) ) - 2 ; // 14
170+ let exponentBias = ( 1 << ( Float16 . exponentBitCount - 1 ) ) - 2 // 14
171171 if ( f. exponentBitPattern == 0x1f ) { // NaN or Infinity
172172 if ( f. isInfinite) {
173173 return _infinity ( buffer: & buffer, sign: f. sign)
174174 } else { // f.isNaN
175175 let quietBit =
176- ( f. significandBitPattern >> ( Float16 . significandBitCount - 1 ) ) & 1 ;
176+ ( f. significandBitPattern >> ( Float16 . significandBitCount - 1 ) ) & 1
177177 let payloadMask = UInt16 ( 1 &<< ( Float16 . significandBitCount - 2 ) ) - 1
178178 let payload16 = f. significandBitPattern & payloadMask
179179 return nan_details (
@@ -456,7 +456,7 @@ internal func _Float32ToASCII(
456456
457457 let binaryExponent : Int
458458 let significand : Float . RawSignificand
459- let exponentBias = ( 1 << ( Float . exponentBitCount - 1 ) ) - 2 ; // 126
459+ let exponentBias = ( 1 << ( Float . exponentBitCount - 1 ) ) - 2 // 126
460460 if ( f. exponentBitPattern == 0xff ) {
461461 if ( f. isInfinite) {
462462 return _infinity ( buffer: & buffer, sign: f. sign)
@@ -615,7 +615,7 @@ internal func _Float32ToASCII(
615615 }
616616 let one = UInt64 ( 1 ) << ( 64 - integerBits)
617617 let lastAccurateBit = UInt64 ( 1 ) << 24
618- let fractionMask = ( one - 1 ) & ~ ( lastAccurateBit - 1 ) ;
618+ let fractionMask = ( one - 1 ) & ~ ( lastAccurateBit - 1 )
619619 let oneHalf = one >> 1
620620 var lastDigit = unsafe buffer. unsafeLoad (
621621 fromUncheckedByteOffset: nextDigit &- 1 ,
@@ -698,7 +698,7 @@ internal func _Float64ToASCII(
698698 //
699699 let binaryExponent : Int
700700 let significand : Double . RawSignificand
701- let exponentBias = ( 1 << ( Double . exponentBitCount - 1 ) ) - 2 ; // 1022
701+ let exponentBias = ( 1 << ( Double . exponentBitCount - 1 ) ) - 2 // 1022
702702
703703 if ( d. exponentBitPattern == 0x7ff ) {
704704 if ( d. isInfinite) {
@@ -1040,7 +1040,7 @@ internal func _Float64ToASCII(
10401040 // >90% of random binary64 values need at least 15 digits.
10411041 // We have seven so there's probably at least 8 more, which
10421042 // we can grab all at once.
1043- let TenToTheEighth = 100000000 as UInt128 ; // 10^(15-bulkFirstDigits)
1043+ let TenToTheEighth = 100000000 as UInt128 // 10^(15-bulkFirstDigits)
10441044 let d0 = delta * TenToTheEighth
10451045 var t0 = t * TenToTheEighth
10461046 // The integer part of t0 is the next 8 digits
@@ -1091,8 +1091,8 @@ internal func _Float64ToASCII(
10911091 truncatingIfNeeded: t >> ( 64 - integerBits + adjustIntegerBits) )
10921092
10931093 let one = UInt64 ( 1 ) << ( 64 - adjustIntegerBits)
1094- let adjustFractionMask = one - 1 ;
1095- let oneHalf = one >> 1 ;
1094+ let adjustFractionMask = one - 1
1095+ let oneHalf = one >> 1
10961096 if deltaHigh64 >= tHigh64 &+ one {
10971097 // The `skew` is the difference between our
10981098 // computed digits and the original exact value.
@@ -1203,7 +1203,7 @@ internal func _Float80ToASCII(
12031203 let rawSignificand = f. _representation. explicitSignificand
12041204 let binaryExponent : Int
12051205 let significand : Float80 . RawSignificand
1206- let exponentBias = ( 1 << ( Float80 . exponentBitCount - 1 ) ) - 2 ; // 16382
1206+ let exponentBias = ( 1 << ( Float80 . exponentBitCount - 1 ) ) - 2 // 16382
12071207 let isBoundary = f. significandBitPattern == 0
12081208 if f. exponentBitPattern == 0x7fff { // NaN or Infinity
12091209 // 80387 semantics and 80287 semantics differ somewhat;
0 commit comments