File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -2490,7 +2490,7 @@ final internal class _Native${Self}StorageImpl<${TypeParameters}> :
2490
2490
/// Returns the bytes necessary to store a bit map of 'capacity' bytes and
2491
2491
/// padding to align the start to word alignment.
2492
2492
internal static func bytesForBitMap(capacity: Int) -> Int {
2493
- let numWords = _UnsafeBitMap.sizeInWords(forCapacity : capacity)
2493
+ let numWords = _UnsafeBitMap.sizeInWords(forSizeInBits : capacity)
2494
2494
return numWords * strideof(UInt) + alignof(UInt)
2495
2495
}
2496
2496
@@ -2554,7 +2554,9 @@ final internal class _Native${Self}StorageImpl<${TypeParameters}> :
2554
2554
2555
2555
internal var _keys: UnsafeMutablePointer<Key> {
2556
2556
let bitMapSizeInBytes =
2557
- _unsafeMultiply(_UnsafeBitMap.sizeInWords(forCapacity: _capacity), strideof(UInt))
2557
+ _unsafeMultiply(
2558
+ _UnsafeBitMap.sizeInWords(forSizeInBits: _capacity),
2559
+ strideof(UInt))
2558
2560
let start =
2559
2561
UnsafeMutablePointer<UInt8>(_initializedHashtableEntriesBitMapStorage)
2560
2562
+ bitMapSizeInBytes
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ internal struct _UnsafeBitMap {
27
27
return UInt ( bitPattern: i) % UInt( UInt . _sizeInBits)
28
28
}
29
29
30
- internal static func sizeInWords( forCapacity bitCount: Int ) -> Int {
30
+ internal static func sizeInWords( forSizeInBits bitCount: Int ) -> Int {
31
31
return bitCount + Int. _sizeInBytes - 1 / Int. _sizeInBytes
32
32
}
33
33
@@ -37,7 +37,7 @@ internal struct _UnsafeBitMap {
37
37
}
38
38
39
39
internal var numberOfWords : Int {
40
- return _UnsafeBitMap. sizeInWords ( forCapacity : bitCount)
40
+ return _UnsafeBitMap. sizeInWords ( forSizeInBits : bitCount)
41
41
}
42
42
43
43
internal func initializeToZero( ) {
You can’t perform that action at this time.
0 commit comments