File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -858,7 +858,7 @@ public protocol FloatingPointInterchange: FloatingPoint {
858
858
859
859
extension FloatingPointInterchange {
860
860
public init ( littleEndian encoding: BitPattern ) {
861
- #if arch(i386) || arch(x86_64) || arch(arm) || arch(arm64) || arch(powerpc64le)
861
+ #if arch(i386) || arch(x86_64) || arch(arm) || arch(arm64) || arch(powerpc64le) || arch(s390x)
862
862
self = unsafeBitCast ( encoding, to: Self . self)
863
863
#else
864
864
_UnsupportedArchitectureError ( )
@@ -868,7 +868,8 @@ extension FloatingPointInterchange {
868
868
fatalError ( " TODO: with low-level generic integer type support for bswap. " )
869
869
}
870
870
public var littleEndian : BitPattern {
871
- #if arch(i386) || arch(x86_64) || arch(arm) || arch(arm64) || arch(powerpc64le)
871
+ #if arch(i386) || arch(x86_64) || arch(arm) || arch(arm64) || arch(powerpc64le) || arch(s390x)
872
+
872
873
return unsafeBitCast ( self , to: BitPattern . self)
873
874
#else
874
875
_UnsupportedArchitectureError ( )
You can’t perform that action at this time.
0 commit comments