[−][src]Type Definition packed_simd::msizex2
type msizex2 = Simd<[msize; 2]>;
A vector mask with 2 msize
lanes.
Methods
impl msizex2
[src]
pub const fn new(x0: bool, x1: bool) -> Self
[src]
Creates a new instance with each vector elements initialized with the provided values.
pub const fn lanes() -> usize
[src]
Returns the number of vector lanes.
pub const fn splat(value: bool) -> Self
[src]
Constructs a new instance with each element initialized to
value
.
pub fn extract(self, index: usize) -> bool
[src]
pub unsafe fn extract_unchecked(self, index: usize) -> bool
[src]
Extracts the value at index
.
If index >= Self::lanes()
the behavior is undefined.
#[must_use = "replace does not modify the original value - it returns a new vector with the value at `index` replaced by `new_value`d"]
pub fn replace(self, index: usize, new_value: bool) -> Self
[src]
Returns a new vector where the value at index
is replaced by
new_value
.
Panics
If index >= Self::lanes()
.
#[must_use = "replace_unchecked does not modify the original value - it returns a new vector with the value at `index` replaced by `new_value`d"]
pub unsafe fn replace_unchecked(self, index: usize, new_value: bool) -> Self
[src]
Returns a new vector where the value at index
is replaced by
new_value
.
Panics
If index >= Self::lanes()
.
impl msizex2
[src]
pub fn and(self) -> bool
[src]
Lane-wise bitwise and
of the vector elements.
Note: if the vector has one lane, the first element of the vector is returned.
pub fn or(self) -> bool
[src]
Lane-wise bitwise or
of the vector elements.
Note: if the vector has one lane, the first element of the vector is returned.
pub fn xor(self) -> bool
[src]
Lane-wise bitwise xor
of the vector elements.
Note: if the vector has one lane, the first element of the vector is returned.
impl msizex2
[src]
pub fn all(self) -> bool
[src]
Are all
vector lanes true
?
pub fn any(self) -> bool
[src]
Is any
vector lane true
?
pub fn none(self) -> bool
[src]
Are all
vector lanes false
?
impl msizex2
[src]
pub fn eq(self, other: Self) -> msizex2
[src]
Lane-wise equality comparison.
pub fn ne(self, other: Self) -> msizex2
[src]
Lane-wise inequality comparison.
pub fn lt(self, other: Self) -> msizex2
[src]
Lane-wise less-than comparison.
pub fn le(self, other: Self) -> msizex2
[src]
Lane-wise less-than-or-equals comparison.
pub fn gt(self, other: Self) -> msizex2
[src]
Lane-wise greater-than comparison.
pub fn ge(self, other: Self) -> msizex2
[src]
Lane-wise greater-than-or-equals comparison.
impl msizex2
[src]
pub fn select<T>(self, a: Simd<T>, b: Simd<T>) -> Simd<T> where
T: SimdArray<NT = <[msize; 2] as SimdArray>::NT>,
[src]
T: SimdArray<NT = <[msize; 2] as SimdArray>::NT>,
Selects elements of a
and b
using mask.
The lanes of the result for which the mask is true
contain
the values of a
. The remaining lanes contain the values of
b
.
impl msizex2
[src]
pub fn partial_lex_ord(&self) -> LexicographicallyOrdered<msizex2>
[src]
Returns a wrapper that implements PartialOrd
.
impl msizex2
[src]
pub fn lex_ord(&self) -> LexicographicallyOrdered<msizex2>
[src]
Returns a wrapper that implements Ord
.
impl msizex2
[src]
pub fn shuffle1_dyn<I>(self, indices: I) -> Self where
Self: Shuffle1Dyn<Indices = I>,
[src]
Self: Shuffle1Dyn<Indices = I>,
Shuffle vector elements according to indices
.
impl msizex2
[src]
pub fn bitmask(self) -> u8
[src]
Creates a bitmask with the MSB of each vector lane.
If the vector has less than 8 lanes, the bits that do not correspond to any vector lanes are cleared.
Trait Implementations
impl FromCast<Simd<[i8; 2]>> for msizex2
[src]
impl FromCast<Simd<[u8; 2]>> for msizex2
[src]
impl FromCast<Simd<[m8; 2]>> for msizex2
[src]
impl FromCast<Simd<[i16; 2]>> for msizex2
[src]
impl FromCast<Simd<[u16; 2]>> for msizex2
[src]
impl FromCast<Simd<[m16; 2]>> for msizex2
[src]
impl FromCast<Simd<[i32; 2]>> for msizex2
[src]
impl FromCast<Simd<[u32; 2]>> for msizex2
[src]
impl FromCast<Simd<[f32; 2]>> for msizex2
[src]
impl FromCast<Simd<[m32; 2]>> for msizex2
[src]
impl FromCast<Simd<[i64; 2]>> for msizex2
[src]
impl FromCast<Simd<[u64; 2]>> for msizex2
[src]
impl FromCast<Simd<[f64; 2]>> for msizex2
[src]
impl FromCast<Simd<[m64; 2]>> for msizex2
[src]
impl FromCast<Simd<[i128; 2]>> for msizex2
[src]
impl FromCast<Simd<[u128; 2]>> for msizex2
[src]
impl FromCast<Simd<[m128; 2]>> for msizex2
[src]
impl FromCast<Simd<[isize; 2]>> for msizex2
[src]
impl FromCast<Simd<[usize; 2]>> for msizex2
[src]
impl PartialEq<Simd<[msize; 2]>> for msizex2
[src]
impl Eq for msizex2
[src]
impl From<[msize; 2]> for msizex2
[src]
impl Debug for msizex2
[src]
impl Not for msizex2
[src]
impl BitAnd<Simd<[msize; 2]>> for msizex2
[src]
type Output = Self
The resulting type after applying the &
operator.
fn bitand(self, other: Self) -> Self
[src]
impl BitAnd<bool> for msizex2
[src]
type Output = Self
The resulting type after applying the &
operator.
fn bitand(self, other: bool) -> Self
[src]
impl BitOr<Simd<[msize; 2]>> for msizex2
[src]
type Output = Self
The resulting type after applying the |
operator.
fn bitor(self, other: Self) -> Self
[src]
impl BitOr<bool> for msizex2
[src]
type Output = Self
The resulting type after applying the |
operator.
fn bitor(self, other: bool) -> Self
[src]
impl BitXor<Simd<[msize; 2]>> for msizex2
[src]
type Output = Self
The resulting type after applying the ^
operator.
fn bitxor(self, other: Self) -> Self
[src]
impl BitXor<bool> for msizex2
[src]
type Output = Self
The resulting type after applying the ^
operator.