|
1 | 1 | use crate::{LaneCount, Mask, Simd, SimdElement, SupportedLaneCount};
|
2 | 2 |
|
3 |
| -impl<Element, const LANES: usize> Simd<Element, LANES> |
| 3 | +impl<T, const LANES: usize> Simd<T, LANES> |
4 | 4 | where
|
5 |
| - Element: SimdElement + PartialEq, |
| 5 | + T: SimdElement + PartialEq, |
6 | 6 | LaneCount<LANES>: SupportedLaneCount,
|
7 | 7 | {
|
8 | 8 | /// Test if each lane is equal to the corresponding lane in `other`.
|
9 | 9 | #[inline]
|
10 |
| - pub fn lanes_eq(self, other: Self) -> Mask<Element::Mask, LANES> { |
| 10 | + pub fn lanes_eq(self, other: Self) -> Mask<T::Mask, LANES> { |
11 | 11 | unsafe { Mask::from_int_unchecked(crate::intrinsics::simd_eq(self, other)) }
|
12 | 12 | }
|
13 | 13 |
|
14 | 14 | /// Test if each lane is not equal to the corresponding lane in `other`.
|
15 | 15 | #[inline]
|
16 |
| - pub fn lanes_ne(self, other: Self) -> Mask<Element::Mask, LANES> { |
| 16 | + pub fn lanes_ne(self, other: Self) -> Mask<T::Mask, LANES> { |
17 | 17 | unsafe { Mask::from_int_unchecked(crate::intrinsics::simd_ne(self, other)) }
|
18 | 18 | }
|
19 | 19 | }
|
20 | 20 |
|
21 |
| -impl<Element, const LANES: usize> Simd<Element, LANES> |
| 21 | +impl<T, const LANES: usize> Simd<T, LANES> |
22 | 22 | where
|
23 |
| - Element: SimdElement + PartialOrd, |
| 23 | + T: SimdElement + PartialOrd, |
24 | 24 | LaneCount<LANES>: SupportedLaneCount,
|
25 | 25 | {
|
26 | 26 | /// Test if each lane is less than the corresponding lane in `other`.
|
27 | 27 | #[inline]
|
28 |
| - pub fn lanes_lt(self, other: Self) -> Mask<Element::Mask, LANES> { |
| 28 | + pub fn lanes_lt(self, other: Self) -> Mask<T::Mask, LANES> { |
29 | 29 | unsafe { Mask::from_int_unchecked(crate::intrinsics::simd_lt(self, other)) }
|
30 | 30 | }
|
31 | 31 |
|
32 | 32 | /// Test if each lane is greater than the corresponding lane in `other`.
|
33 | 33 | #[inline]
|
34 |
| - pub fn lanes_gt(self, other: Self) -> Mask<Element::Mask, LANES> { |
| 34 | + pub fn lanes_gt(self, other: Self) -> Mask<T::Mask, LANES> { |
35 | 35 | unsafe { Mask::from_int_unchecked(crate::intrinsics::simd_gt(self, other)) }
|
36 | 36 | }
|
37 | 37 |
|
38 | 38 | /// Test if each lane is less than or equal to the corresponding lane in `other`.
|
39 | 39 | #[inline]
|
40 |
| - pub fn lanes_le(self, other: Self) -> Mask<Element::Mask, LANES> { |
| 40 | + pub fn lanes_le(self, other: Self) -> Mask<T::Mask, LANES> { |
41 | 41 | unsafe { Mask::from_int_unchecked(crate::intrinsics::simd_le(self, other)) }
|
42 | 42 | }
|
43 | 43 |
|
44 | 44 | /// Test if each lane is greater than or equal to the corresponding lane in `other`.
|
45 | 45 | #[inline]
|
46 |
| - pub fn lanes_ge(self, other: Self) -> Mask<Element::Mask, LANES> { |
| 46 | + pub fn lanes_ge(self, other: Self) -> Mask<T::Mask, LANES> { |
47 | 47 | unsafe { Mask::from_int_unchecked(crate::intrinsics::simd_ge(self, other)) }
|
48 | 48 | }
|
49 | 49 | }
|
0 commit comments