@@ -683,15 +683,15 @@ public struct Data : ReferenceConvertible, Equatable, Hashable, RandomAccessColl
683
683
@usableFromInline
684
684
typealias Buffer = ( UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 ,
685
685
UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 ) //len //enum
686
- #elseif arch(i386) || arch(arm) || arch(arm64_32)
686
+ @usableFromInline
687
+ var bytes : Buffer
688
+ #elseif arch(i386) || arch(arm)
687
689
@usableFromInline
688
690
typealias Buffer = ( UInt8 , UInt8 , UInt8 , UInt8 ,
689
691
UInt8 , UInt8 ) //len //enum
690
- #else
691
- #error ("Unsupported architecture: a definition of Buffer needs to be made with N = (MemoryLayout<(Int, Int)>.size - 2) UInt8 members to a tuple")
692
- #endif
693
692
@usableFromInline
694
693
var bytes : Buffer
694
+ #endif
695
695
@usableFromInline
696
696
var length : UInt8
697
697
@@ -720,11 +720,9 @@ public struct Data : ReferenceConvertible, Equatable, Hashable, RandomAccessColl
720
720
assert ( count <= MemoryLayout< Buffer> . size)
721
721
#if arch(x86_64) || arch(arm64) || arch(s390x) || arch(powerpc64) || arch(powerpc64le)
722
722
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 ) )
723
- #elseif arch(i386) || arch(arm) || arch(arm64_32)
723
+ #elseif arch(i386) || arch(arm)
724
724
bytes = ( UInt8 ( 0 ) , UInt8 ( 0 ) , UInt8 ( 0 ) , UInt8 ( 0 ) ,
725
725
UInt8 ( 0 ) , UInt8 ( 0 ) )
726
- #else
727
- #error ("Unsupported architecture: initialization for Buffer is required for this architecture")
728
726
#endif
729
727
length = UInt8 ( count)
730
728
}
@@ -880,11 +878,9 @@ public struct Data : ReferenceConvertible, Equatable, Hashable, RandomAccessColl
880
878
#if arch(x86_64) || arch(arm64) || arch(s390x) || arch(powerpc64) || arch(powerpc64le)
881
879
@usableFromInline
882
880
internal typealias HalfInt = Int32
883
- #elseif arch(i386) || arch(arm) || arch(arm64_32)
881
+ #elseif arch(i386) || arch(arm)
884
882
@usableFromInline
885
883
internal typealias HalfInt = Int16
886
- #else
887
- #error ("Unsupported architecture: a definition of half of the pointer sized Int needs to be defined for this architecture")
888
884
#endif
889
885
890
886
@usableFromInline
0 commit comments