Type Definition packed_simd::m32x16
source · pub type m32x16 = Simd<[m32; 16]>;
Expand description
A 512-bit vector mask with 16 m32
lanes.
Implementations§
source§impl m32x16
impl m32x16
sourcepub const fn new(
x0: bool,
x1: bool,
x2: bool,
x3: bool,
x4: bool,
x5: bool,
x6: bool,
x7: bool,
x8: bool,
x9: bool,
x10: bool,
x11: bool,
x12: bool,
x13: bool,
x14: bool,
x15: bool
) -> Self
pub const fn new( x0: bool, x1: bool, x2: bool, x3: bool, x4: bool, x5: bool, x6: bool, x7: bool, x8: bool, x9: bool, x10: bool, x11: bool, x12: bool, x13: bool, x14: bool, x15: bool ) -> Self
Creates a new instance with each vector elements initialized with the provided values.
sourcepub const fn splat(value: bool) -> Self
pub const fn splat(value: bool) -> Self
Constructs a new instance with each element initialized to
value
.
sourcepub unsafe fn extract_unchecked(self, index: usize) -> bool
pub unsafe fn extract_unchecked(self, index: usize) -> bool
sourcepub fn replace(self, index: usize, new_value: bool) -> Self
pub fn replace(self, index: usize, new_value: bool) -> Self
Returns a new vector where the value at index
is replaced by
new_value
.
Panics
If index >= Self::lanes()
.
sourcepub unsafe fn replace_unchecked(self, index: usize, new_value: bool) -> Self
pub unsafe fn replace_unchecked(self, index: usize, new_value: bool) -> Self
Returns a new vector where the value at index
is replaced by
new_value
.
Safety
If index >= Self::lanes()
the behavior is undefined.
source§impl m32x16
impl m32x16
sourcepub fn and(self) -> bool
pub fn and(self) -> bool
Lane-wise bitwise and
of the vector elements.
Note: if the vector has one lane, the first element of the vector is returned.
source§impl m32x16
impl m32x16
sourcepub fn partial_lex_ord(&self) -> LexicographicallyOrdered<m32x16>
pub fn partial_lex_ord(&self) -> LexicographicallyOrdered<m32x16>
Returns a wrapper that implements PartialOrd
.
source§impl m32x16
impl m32x16
sourcepub fn lex_ord(&self) -> LexicographicallyOrdered<m32x16>
pub fn lex_ord(&self) -> LexicographicallyOrdered<m32x16>
Returns a wrapper that implements Ord
.
source§impl m32x16
impl m32x16
sourcepub fn shuffle1_dyn<I>(self, indices: I) -> Selfwhere
Self: Shuffle1Dyn<Indices = I>,
pub fn shuffle1_dyn<I>(self, indices: I) -> Selfwhere Self: Shuffle1Dyn<Indices = I>,
Shuffle vector elements according to indices
.
Trait Implementations§
source§impl BitAndAssign<Simd<[m32; 16]>> for m32x16
impl BitAndAssign<Simd<[m32; 16]>> for m32x16
source§fn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
Performs the
&=
operation. Read moresource§impl BitAndAssign<bool> for m32x16
impl BitAndAssign<bool> for m32x16
source§fn bitand_assign(&mut self, other: bool)
fn bitand_assign(&mut self, other: bool)
Performs the
&=
operation. Read moresource§impl BitOrAssign<Simd<[m32; 16]>> for m32x16
impl BitOrAssign<Simd<[m32; 16]>> for m32x16
source§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Performs the
|=
operation. Read moresource§impl BitOrAssign<bool> for m32x16
impl BitOrAssign<bool> for m32x16
source§fn bitor_assign(&mut self, other: bool)
fn bitor_assign(&mut self, other: bool)
Performs the
|=
operation. Read moresource§impl BitXorAssign<Simd<[m32; 16]>> for m32x16
impl BitXorAssign<Simd<[m32; 16]>> for m32x16
source§fn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
Performs the
^=
operation. Read moresource§impl BitXorAssign<bool> for m32x16
impl BitXorAssign<bool> for m32x16
source§fn bitxor_assign(&mut self, other: bool)
fn bitxor_assign(&mut self, other: bool)
Performs the
^=
operation. Read more