Skip to content

Commit ba0888d

Browse files
Really remove static min and max on simd. One slipped through. (#24283)
1 parent 209c1d7 commit ba0888d

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

stdlib/public/core/SIMDVector.swift

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -549,32 +549,6 @@ extension SIMD where Scalar: FloatingPoint {
549549
return Self(repeating: 1)
550550
}
551551

552-
/// The lanewise minimum of two vectors.
553-
///
554-
/// Each element of the result is the minimum of the corresponding elements
555-
/// of the inputs.
556-
@_alwaysEmitIntoClient
557-
public static func min(_ a: Self, _ b: Self) -> Self {
558-
var result = Self()
559-
for i in result.indices {
560-
result[i] = Scalar.minimum(a[i], b[i])
561-
}
562-
return result
563-
}
564-
565-
/// The lanewise maximum of two vectors.
566-
///
567-
/// Each element of the result is the minimum of the corresponding elements
568-
/// of the inputs.
569-
@_alwaysEmitIntoClient
570-
public static func max(_ a: Self, _ b: Self) -> Self {
571-
var result = Self()
572-
for i in result.indices {
573-
result[i] = Scalar.maximum(a[i], b[i])
574-
}
575-
return result
576-
}
577-
578552
@_alwaysEmitIntoClient
579553
public mutating func clamp(lowerBound: Self, upperBound: Self) {
580554
self = self.clamped(lowerBound: lowerBound, upperBound: upperBound)

0 commit comments

Comments
 (0)