Struct mask64x4
pub struct mask64x4<S: Simd> { /* private fields */ }
A SIMD mask of 4 logical lanes corresponding to 64-bit vector elements.
The storage representation of this type is intentionally opaque and may vary depending on the SIMD level.
You can construct this mask type using the Self::splat, Self::from_bitmask, Self::from_slice, and Self::simd_from methods.
# use fearless_simd::{prelude::*, mask64x4};
fn construct_mask<S: Simd>(simd: S) {
// From a single boolean value:
let a = mask64x4::splat(simd, true);
let b = mask64x4::simd_from(simd, true);
// From signed integer mask lanes:
let c = mask64x4::from_slice(simd, &[-1, 0, 0, 0]);
let d = mask64x4::simd_from(simd, [-1, 0, 0, 0]);
// From a compact bitmask (same mask as above, least significant bit maps to lane 0):
let e = mask64x4::from_bitmask(simd, 0b0001);
// By setting individual lanes:
let mut f = mask64x4::splat(simd, false);
f.set(0, true);
}
Trait Implementations
impl<S: Clone + Simd> Clone for mask64x4<S>
where
S::mask64x4: Clone,
fn clone(&self) -> Self
impl<S: Copy + Simd> Copy for mask64x4<S>
where
S::mask64x4: Copy,
impl<S: Simd + Debug> Debug for mask64x4<S>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<S: Simd> BitAnd for mask64x4<S>
type Output = mask64x4<S>;fn bitand(self, rhs: Self) -> Self::OutputCompute the logical AND of two masks.
impl<S: Simd> BitAndAssign for mask64x4<S>
fn bitand_assign(&mut self, rhs: Self)Compute the logical AND of two masks.
impl<S: Simd> BitOr for mask64x4<S>
type Output = mask64x4<S>;fn bitor(self, rhs: Self) -> Self::OutputCompute the logical OR of two masks.
impl<S: Simd> BitOrAssign for mask64x4<S>
fn bitor_assign(&mut self, rhs: Self)Compute the logical OR of two masks.
impl<S: Simd> BitXor for mask64x4<S>
type Output = mask64x4<S>;fn bitxor(self, rhs: Self) -> Self::OutputCompute the logical XOR of two masks.
impl<S: Simd> BitXorAssign for mask64x4<S>
fn bitxor_assign(&mut self, rhs: Self)Compute the logical XOR of two masks.
impl<S: Simd> ExtractToken for mask64x4<S>
type S = S;fn token(&self) -> S
impl<S: Simd> MaskNarrow<S> for mask64x4<S>
type Narrowed = mask32x8<S>;fn narrow(self, high: Self) -> Self::Narrowed
impl<S: Simd> Not for mask64x4<S>
type Output = mask64x4<S>;fn not(self) -> Self::OutputCompute the logical NOT of the mask.
impl<S: Simd> Select<f64x4<S>> for mask64x4<S>
fn select(self, if_true: f64x4<S>, if_false: f64x4<S>) -> f64x4<S>
impl<S: Simd> Select<i64x4<S>> for mask64x4<S>
fn select(self, if_true: i64x4<S>, if_false: i64x4<S>) -> i64x4<S>
impl<S: Simd> Select<mask64x4<S>> for mask64x4<S>
fn select(self, if_true: mask64x4<S>, if_false: mask64x4<S>) -> mask64x4<S>
impl<S: Simd> Select<u64x4<S>> for mask64x4<S>
fn select(self, if_true: u64x4<S>, if_false: u64x4<S>) -> u64x4<S>
impl<S: Simd> SimdFrom<[i64; 4], S> for mask64x4<S>
fn simd_from(simd: S, val: [i64; 4]) -> Self
impl<S: Simd> SimdFrom<__m256i, S> for mask64x4<S>
fn simd_from(simd: S, arch: __m256i) -> Self
impl<S: Simd> SimdFrom<bool, S> for mask64x4<S>
fn simd_from(simd: S, value: bool) -> Self
impl<S: Simd> SimdFrom<u8, S> for mask64x4<S>
fn simd_from(simd: S, arch: __mmask8) -> Self
impl<S: Simd> SimdMask<S> for mask64x4<S>
type Element = i64;type Ints = i64x4<S>;const LEN: usize = 4;fn splat(simd: S, val: bool) -> Selffn from_bitmask(simd: S, bits: u64) -> Selffn to_bitmask(self) -> u64fn from_vector(vector: Self::Ints) -> Selffn to_vector(self) -> Self::Intsfn set(&mut self, index: usize, value: bool)fn from_slice(simd: S, slice: &[i64]) -> Selffn store_slice(&self, slice: &mut [i64])fn rotate_elements_left<const OFFSET: usize>(self) -> Selffn rotate_elements_right<const OFFSET: usize>(self) -> Selffn reverse(self) -> Selffn simd_eq(self, rhs: impl SimdInto<Self, S>) -> Selffn simd_ne(self, rhs: impl SimdInto<Self, S>) -> Selffn any_true(self) -> boolfn all_true(self) -> boolfn any_false(self) -> boolfn all_false(self) -> bool