File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,7 @@ extension Comparable {
183
183
/// - Parameters:
184
184
/// - lhs: A value to compare.
185
185
/// - rhs: Another value to compare.
186
+ @_inlineable
186
187
public static func > ( lhs: Self , rhs: Self ) -> Bool {
187
188
return rhs < lhs
188
189
}
@@ -196,6 +197,7 @@ extension Comparable {
196
197
/// - Parameters:
197
198
/// - lhs: A value to compare.
198
199
/// - rhs: Another value to compare.
200
+ @_inlineable
199
201
public static func <= ( lhs: Self , rhs: Self ) -> Bool {
200
202
return !( rhs < lhs)
201
203
}
@@ -211,6 +213,7 @@ extension Comparable {
211
213
/// - rhs: Another value to compare.
212
214
/// - Returns: `true` if `lhs` is greater than or equal to `rhs`; otherwise,
213
215
/// `false`.
216
+ @_inlineable
214
217
public static func >= ( lhs: Self , rhs: Self ) -> Bool {
215
218
return !( lhs < rhs)
216
219
}
Original file line number Diff line number Diff line change @@ -1633,6 +1633,7 @@ ${operatorComment(x.operator, False)}
1633
1633
// Heterogeneous non-masking shift in terms of shift-assignment
1634
1634
${ operatorComment ( x. nonMaskingOperator, False) }
1635
1635
@_semantics( " optimize.sil.specialize.generic.partial.never " )
1636
+ @_inlineable
1636
1637
public static func ${ x. nonMaskingOperator} < RHS: BinaryInteger> (
1637
1638
_ lhs: Self, _ rhs: RHS
1638
1639
) - > Self {
@@ -2184,6 +2185,7 @@ ${operatorComment(x.operator, False)}
2184
2185
// Heterogeneous masking shift
2185
2186
${ operatorComment ( x. operator, False) }
2186
2187
@_semantics ( " optimize.sil.specialize.generic.partial.never " )
2188
+ @_inlineable
2187
2189
public static func ${ x. operator} <
2188
2190
Other : BinaryInteger
2189
2191
> ( lhs: Self, rhs: Other) - > Self {
You can’t perform that action at this time.
0 commit comments