Type Definition packed_simd::m8x64

source ·
pub type m8x64 = Simd<[m8; 64]>;
Expand description

A 512-bit vector mask with 64 m8 lanes.

Implementations§

source§

impl m8x64

source

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, x16: bool, x17: bool, x18: bool, x19: bool, x20: bool, x21: bool, x22: bool, x23: bool, x24: bool, x25: bool, x26: bool, x27: bool, x28: bool, x29: bool, x30: bool, x31: bool, x32: bool, x33: bool, x34: bool, x35: bool, x36: bool, x37: bool, x38: bool, x39: bool, x40: bool, x41: bool, x42: bool, x43: bool, x44: bool, x45: bool, x46: bool, x47: bool, x48: bool, x49: bool, x50: bool, x51: bool, x52: bool, x53: bool, x54: bool, x55: bool, x56: bool, x57: bool, x58: bool, x59: bool, x60: bool, x61: bool, x62: bool, x63: bool ) -> Self

Creates a new instance with each vector elements initialized with the provided values.

source

pub const fn lanes() -> usize

Returns the number of vector lanes.

source

pub const fn splat(value: bool) -> Self

Constructs a new instance with each element initialized to value.

source

pub fn extract(self, index: usize) -> bool

Extracts the value at index.

Panics

If index >= Self::lanes().

source

pub unsafe fn extract_unchecked(self, index: usize) -> bool

Extracts the value at index.

Safety

If index >= Self::lanes() the behavior is undefined.

source

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().

source

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 m8x64

source

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

pub fn or(self) -> bool

Lane-wise bitwise or of the vector elements.

Note: if the vector has one lane, the first element of the vector is returned.

source

pub fn xor(self) -> bool

Lane-wise bitwise xor of the vector elements.

Note: if the vector has one lane, the first element of the vector is returned.

source§

impl m8x64

source

pub fn all(self) -> bool

Are all vector lanes true?

source

pub fn any(self) -> bool

Is any vector lane true?

source

pub fn none(self) -> bool

Are all vector lanes false?

source§

impl m8x64

source

pub fn eq(self, other: Self) -> m8x64

Lane-wise equality comparison.

source

pub fn ne(self, other: Self) -> m8x64

Lane-wise inequality comparison.

source

pub fn lt(self, other: Self) -> m8x64

Lane-wise less-than comparison.

source

pub fn le(self, other: Self) -> m8x64

Lane-wise less-than-or-equals comparison.

source

pub fn gt(self, other: Self) -> m8x64

Lane-wise greater-than comparison.

source

pub fn ge(self, other: Self) -> m8x64

Lane-wise greater-than-or-equals comparison.

source§

impl m8x64

source

pub fn select<T>(self, a: Simd<T>, b: Simd<T>) -> Simd<T>where T: SimdArray<NT = <[m8; 64] 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.

source§

impl m8x64

source

pub fn partial_lex_ord(&self) -> LexicographicallyOrdered<m8x64>

Returns a wrapper that implements PartialOrd.

source§

impl m8x64

source

pub fn lex_ord(&self) -> LexicographicallyOrdered<m8x64>

Returns a wrapper that implements Ord.

source§

impl m8x64

source

pub fn shuffle1_dyn<I>(self, indices: I) -> Selfwhere Self: Shuffle1Dyn<Indices = I>,

Shuffle vector elements according to indices.

source§

impl m8x64

source

pub fn bitmask(self) -> u64

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§

source§

impl BitAnd<Simd<[m8; 64]>> for m8x64

§

type Output = Simd<[m8; 64]>

The resulting type after applying the & operator.
source§

fn bitand(self, other: Self) -> Self

Performs the & operation. Read more
source§

impl BitAnd<bool> for m8x64

§

type Output = Simd<[m8; 64]>

The resulting type after applying the & operator.
source§

fn bitand(self, other: bool) -> Self

Performs the & operation. Read more
source§

impl BitAndAssign<Simd<[m8; 64]>> for m8x64

source§

fn bitand_assign(&mut self, other: Self)

Performs the &= operation. Read more
source§

impl BitAndAssign<bool> for m8x64

source§

fn bitand_assign(&mut self, other: bool)

Performs the &= operation. Read more
source§

impl BitOr<Simd<[m8; 64]>> for m8x64

§

type Output = Simd<[m8; 64]>

The resulting type after applying the | operator.
source§

fn bitor(self, other: Self) -> Self

Performs the | operation. Read more
source§

impl BitOr<bool> for m8x64

§

type Output = Simd<[m8; 64]>

The resulting type after applying the | operator.
source§

fn bitor(self, other: bool) -> Self

Performs the | operation. Read more
source§

impl BitOrAssign<Simd<[m8; 64]>> for m8x64

source§

fn bitor_assign(&mut self, other: Self)

Performs the |= operation. Read more
source§

impl BitOrAssign<bool> for m8x64

source§

fn bitor_assign(&mut self, other: bool)

Performs the |= operation. Read more
source§

impl BitXor<Simd<[m8; 64]>> for m8x64

§

type Output = Simd<[m8; 64]>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, other: Self) -> Self

Performs the ^ operation. Read more
source§

impl BitXor<bool> for m8x64

§

type Output = Simd<[m8; 64]>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, other: bool) -> Self

Performs the ^ operation. Read more
source§

impl BitXorAssign<Simd<[m8; 64]>> for m8x64

source§

fn bitxor_assign(&mut self, other: Self)

Performs the ^= operation. Read more
source§

impl BitXorAssign<bool> for m8x64

source§

fn bitxor_assign(&mut self, other: bool)

Performs the ^= operation. Read more
source§

impl Debug for m8x64

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for m8x64

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl From<[m8; 64]> for m8x64

source§

fn from(array: [m8; 64]) -> Self

Converts to this type from the input type.
source§

impl FromBits<Simd<[m128; 4]>> for m8x64

source§

fn from_bits(x: m128x4) -> Self

Available on crate feature into_bits only.
Safe lossless bitwise transmute from T to Self.
source§

impl FromBits<Simd<[m16; 32]>> for m8x64

source§

fn from_bits(x: m16x32) -> Self

Available on crate feature into_bits only.
Safe lossless bitwise transmute from T to Self.
source§

impl FromBits<Simd<[m32; 16]>> for m8x64

source§

fn from_bits(x: m32x16) -> Self

Available on crate feature into_bits only.
Safe lossless bitwise transmute from T to Self.
source§

impl FromBits<Simd<[m64; 8]>> for m8x64

source§

fn from_bits(x: m64x8) -> Self

Available on crate feature into_bits only.
Safe lossless bitwise transmute from T to Self.
source§

impl FromCast<Simd<[i8; 64]>> for m8x64

source§

fn from_cast(x: i8x64) -> Self

Numeric cast from T to Self.
source§

impl FromCast<Simd<[u8; 64]>> for m8x64

source§

fn from_cast(x: u8x64) -> Self

Numeric cast from T to Self.
source§

impl Not for m8x64

§

type Output = Simd<[m8; 64]>

The resulting type after applying the ! operator.
source§

fn not(self) -> Self

Performs the unary ! operation. Read more
source§

impl PartialEq<Simd<[m8; 64]>> for m8x64

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
source§

fn ne(&self, other: &Self) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Simd for m8x64

§

type Element = m8

Element type of the SIMD vector
source§

const LANES: usize = 64usize

The number of elements in the SIMD vector.
§

type LanesType = [u32; 64]

The type: [u32; Self::N].
source§

impl Eq for m8x64