File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,12 @@ public typealias CLongDouble = Float80
87
87
// Long Double type equivalent to Double type.
88
88
public typealias CLongDouble = Double
89
89
#endif
90
+ #elseif os(Android)
91
+ // On Android, long double is Float128 for AAPCS64, which we don't have yet in
92
+ // Swift (SR-9072); and Double for ARMv7.
93
+ #if arch(arm)
94
+ public typealias CLongDouble = Double
95
+ #endif
90
96
#endif
91
97
92
98
// FIXME: Is it actually UTF-32 on Darwin?
Original file line number Diff line number Diff line change @@ -58,9 +58,13 @@ func test_pow() {
58
58
pow ( 1.5 , 2.5 )
59
59
}
60
60
61
+ #if !((os(Android) || os(Linux)) && arch(arm64))
62
+ // long doubles in AAPCS64 are 128 bits, which is not supported by
63
+ // Swift, so don't test this. SR-9072.
61
64
func test_powl( ) {
62
65
powl ( 1.5 , 2.5 )
63
66
}
67
+ #endif
64
68
65
69
func test_puts( _ s: String ) {
66
70
_ = s. withCString { puts ( $0) + 32 } ;
You can’t perform that action at this time.
0 commit comments