@@ -582,11 +582,11 @@ public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollect
582
582
@usableFromInline
583
583
@frozen
584
584
internal struct InlineData : Sendable {
585
- #if arch(x86_64) || arch(arm64) || arch(s390x) || arch(powerpc64) || arch(powerpc64le )
585
+ #if _pointerBitWidth(_64 )
586
586
@usableFromInline typealias Buffer = ( UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 ,
587
587
UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 ) //len //enum
588
588
@usableFromInline var bytes : Buffer
589
- #elseif arch(i386) || arch(arm) || arch(arm64_32) || arch(wasm32 )
589
+ #elseif _pointerBitWidth(_32 )
590
590
@usableFromInline typealias Buffer = ( UInt8 , UInt8 , UInt8 , UInt8 ,
591
591
UInt8 , UInt8 ) //len //enum
592
592
@usableFromInline var bytes : Buffer
@@ -617,9 +617,9 @@ public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollect
617
617
@inlinable // This is @inlinable as a trivial initializer.
618
618
init ( count: Int = 0 ) {
619
619
assert ( count <= MemoryLayout< Buffer> . size)
620
- #if arch(x86_64) || arch(arm64) || arch(s390x) || arch(powerpc64) || arch(powerpc64le )
620
+ #if _pointerBitWidth(_64 )
621
621
bytes = ( UInt8 ( 0 ) , UInt8 ( 0 ) , UInt8 ( 0 ) , UInt8 ( 0 ) , UInt8 ( 0 ) , UInt8 ( 0 ) , UInt8 ( 0 ) , UInt8 ( 0 ) , UInt8 ( 0 ) , UInt8 ( 0 ) , UInt8 ( 0 ) , UInt8 ( 0 ) , UInt8 ( 0 ) , UInt8 ( 0 ) )
622
- #elseif arch(i386) || arch(arm) || arch(arm64_32) || arch(wasm32 )
622
+ #elseif _pointerBitWidth(_32 )
623
623
bytes = ( UInt8 ( 0 ) , UInt8 ( 0 ) , UInt8 ( 0 ) , UInt8 ( 0 ) , UInt8 ( 0 ) , UInt8 ( 0 ) )
624
624
#else
625
625
#error ("Unsupported architecture: initialization for Buffer is required for this architecture")
@@ -804,9 +804,9 @@ public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollect
804
804
}
805
805
}
806
806
807
- #if arch(x86_64) || arch(arm64) || arch(s390x) || arch(powerpc64) || arch(powerpc64le )
807
+ #if _pointerBitWidth(_64 )
808
808
@usableFromInline internal typealias HalfInt = Int32
809
- #elseif arch(i386) || arch(arm) || arch(arm64_32) || arch(wasm32 )
809
+ #elseif _pointerBitWidth(_32 )
810
810
@usableFromInline internal typealias HalfInt = Int16
811
811
#else
812
812
#error ("Unsupported architecture: a definition of half of the pointer sized Int needs to be defined for this architecture")
0 commit comments