@@ -435,7 +435,7 @@ public protocol FloatingPoint: Comparable, Arithmetic,
435
435
/// values of type `Self`, including non-canonical encodings, signed zeros,
436
436
/// and NaNs. Because it is used much less frequently than the usual
437
437
/// comparisons, there is no operator form of this relation.
438
- func isTotallyOrdered( below other: Self ) -> Bool
438
+ func isTotallyOrdered( belowOrEqualTo other: Self ) -> Bool
439
439
440
440
/// True if and only if `self` is normal.
441
441
///
@@ -708,7 +708,7 @@ public protocol BinaryFloatingPoint: FloatingPoint, ExpressibleByFloatLiteral {
708
708
709
709
func isLessThanOrEqualTo<Other: BinaryFloatingPoint>(other: Other) -> Bool
710
710
711
- func isTotallyOrdered<Other: BinaryFloatingPoint>(below other: Other) -> Bool
711
+ func isTotallyOrdered<Other: BinaryFloatingPoint>(belowOrEqualTo other: Other) -> Bool
712
712
*/
713
713
}
714
714
@@ -852,7 +852,7 @@ extension BinaryFloatingPoint {
852
852
significandBitPattern: magnitudeOf. significandBitPattern)
853
853
}
854
854
855
- public func isTotallyOrdered( below other: Self ) -> Bool {
855
+ public func isTotallyOrdered( belowOrEqualTo other: Self ) -> Bool {
856
856
// Quick return when possible.
857
857
if self < other { return true }
858
858
if other > self { return false }
@@ -909,7 +909,7 @@ extension BinaryFloatingPoint {
909
909
return Other(self).isLessThanOrEqualTo(other)
910
910
}
911
911
912
- public func isTotallyOrdered<Other: BinaryFloatingPoint>(before other: Other) -> Bool {
912
+ public func isTotallyOrdered<Other: BinaryFloatingPoint>(belowOrEqualTo other: Other) -> Bool {
913
913
if Self.significandBitCount >= Other.significandBitCount {
914
914
return self.totalOrder(with: Self(other))
915
915
}
0 commit comments