File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 9
9
10
10
@_fixed_layout
11
11
public struct CGFloat {
12
- #if arch(i386) || arch(arm)
12
+ #if arch(i386) || arch(arm) || arch(powerpc)
13
13
/// The native type used to store the CGFloat, which is Float on
14
14
/// 32-bit architectures and Double on 64-bit architectures.
15
15
public typealias NativeType = Float
16
- #elseif arch(x86_64) || arch(arm64) || arch(s390x)
16
+ #elseif arch(x86_64) || arch(arm64) || arch(s390x) || arch(powerpc64) || arch(powerpc64le)
17
17
/// The native type used to store the CGFloat, which is Float on
18
18
/// 32-bit architectures and Double on 64-bit architectures.
19
19
public typealias NativeType = Double
@@ -170,9 +170,9 @@ extension CGFloat : BinaryFloatingPoint {
170
170
171
171
@_transparent
172
172
public init ( bitPattern: UInt ) {
173
- #if arch(i386) || arch(arm)
173
+ #if arch(i386) || arch(arm) || arch(powerpc)
174
174
native = NativeType ( bitPattern: UInt32 ( bitPattern) )
175
- #elseif arch(x86_64) || arch(arm64) || arch(s390x)
175
+ #elseif arch(x86_64) || arch(arm64) || arch(s390x) || arch(powerpc64) || arch(powerpc64le)
176
176
native = NativeType ( bitPattern: UInt64 ( bitPattern) )
177
177
#endif
178
178
}
You can’t perform that action at this time.
0 commit comments