Skip to content

Commit 4aafd8e

Browse files
committed
Rename element type variable
1 parent cf653c7 commit 4aafd8e

File tree

9 files changed

+212
-216
lines changed

9 files changed

+212
-216
lines changed

crates/core_simd/src/comparisons.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
11
use crate::{LaneCount, Mask, Simd, SimdElement, SupportedLaneCount};
22

3-
impl<Element, const LANES: usize> Simd<Element, LANES>
3+
impl<T, const LANES: usize> Simd<T, LANES>
44
where
5-
Element: SimdElement + PartialEq,
5+
T: SimdElement + PartialEq,
66
LaneCount<LANES>: SupportedLaneCount,
77
{
88
/// Test if each lane is equal to the corresponding lane in `other`.
99
#[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> {
1111
unsafe { Mask::from_int_unchecked(crate::intrinsics::simd_eq(self, other)) }
1212
}
1313

1414
/// Test if each lane is not equal to the corresponding lane in `other`.
1515
#[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> {
1717
unsafe { Mask::from_int_unchecked(crate::intrinsics::simd_ne(self, other)) }
1818
}
1919
}
2020

21-
impl<Element, const LANES: usize> Simd<Element, LANES>
21+
impl<T, const LANES: usize> Simd<T, LANES>
2222
where
23-
Element: SimdElement + PartialOrd,
23+
T: SimdElement + PartialOrd,
2424
LaneCount<LANES>: SupportedLaneCount,
2525
{
2626
/// Test if each lane is less than the corresponding lane in `other`.
2727
#[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> {
2929
unsafe { Mask::from_int_unchecked(crate::intrinsics::simd_lt(self, other)) }
3030
}
3131

3232
/// Test if each lane is greater than the corresponding lane in `other`.
3333
#[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> {
3535
unsafe { Mask::from_int_unchecked(crate::intrinsics::simd_gt(self, other)) }
3636
}
3737

3838
/// Test if each lane is less than or equal to the corresponding lane in `other`.
3939
#[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> {
4141
unsafe { Mask::from_int_unchecked(crate::intrinsics::simd_le(self, other)) }
4242
}
4343

4444
/// Test if each lane is greater than or equal to the corresponding lane in `other`.
4545
#[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> {
4747
unsafe { Mask::from_int_unchecked(crate::intrinsics::simd_ge(self, other)) }
4848
}
4949
}

crates/core_simd/src/fmt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
macro_rules! impl_fmt_trait {
22
{ $($trait:ident,)* } => {
33
$(
4-
impl<Element, const LANES: usize> core::fmt::$trait for crate::Simd<Element, LANES>
4+
impl<T, const LANES: usize> core::fmt::$trait for crate::Simd<T, LANES>
55
where
66
crate::LaneCount<LANES>: crate::SupportedLaneCount,
7-
Element: crate::SimdElement + core::fmt::$trait,
7+
T: crate::SimdElement + core::fmt::$trait,
88
{
99
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
1010
#[repr(transparent)]

0 commit comments

Comments
 (0)