|
1 |
| -use crate::simd::{intrinsics, LaneCount, Mask, Simd, SimdElement, SupportedLaneCount}; |
| 1 | +use crate::simd::{intrinsics, LaneCount, Mask, Simd, SimdPartialEq, SupportedLaneCount}; |
2 | 2 |
|
3 | 3 | /// Parallel `PartialOrd`.
|
4 |
| -pub trait SimdPartialOrd { |
5 |
| - /// The mask type returned by each comparison. |
6 |
| - type Mask; |
7 |
| - |
| 4 | +pub trait SimdPartialOrd: SimdPartialEq { |
8 | 5 | /// Test if each lane is less than the corresponding lane in `other`.
|
9 | 6 | #[must_use = "method returns a new mask and does not mutate the original value"]
|
10 | 7 | fn simd_lt(self, other: Self) -> Self::Mask;
|
@@ -51,8 +48,6 @@ macro_rules! impl_integer {
|
51 | 48 | where
|
52 | 49 | LaneCount<LANES>: SupportedLaneCount,
|
53 | 50 | {
|
54 |
| - type Mask = Mask<<$integer as SimdElement>::Mask, LANES>; |
55 |
| - |
56 | 51 | #[inline]
|
57 | 52 | fn simd_lt(self, other: Self) -> Self::Mask {
|
58 | 53 | // Safety: `self` is a vector, and the result of the comparison
|
@@ -118,8 +113,6 @@ macro_rules! impl_float {
|
118 | 113 | where
|
119 | 114 | LaneCount<LANES>: SupportedLaneCount,
|
120 | 115 | {
|
121 |
| - type Mask = Mask<<$float as SimdElement>::Mask, LANES>; |
122 |
| - |
123 | 116 | #[inline]
|
124 | 117 | fn simd_lt(self, other: Self) -> Self::Mask {
|
125 | 118 | // Safety: `self` is a vector, and the result of the comparison
|
@@ -161,8 +154,6 @@ macro_rules! impl_mask {
|
161 | 154 | where
|
162 | 155 | LaneCount<LANES>: SupportedLaneCount,
|
163 | 156 | {
|
164 |
| - type Mask = Self; |
165 |
| - |
166 | 157 | #[inline]
|
167 | 158 | fn simd_lt(self, other: Self) -> Self::Mask {
|
168 | 159 | // Safety: `self` is a vector, and the result of the comparison
|
|
0 commit comments