Type Definition packed_simd_2::m8x16

source · []
pub type m8x16 = Simd<[m8; 16]>;
Expand description

A 128-bit vector mask with 16 m8 lanes.

Implementations

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

Returns the number of vector lanes.

Constructs a new instance with each element initialized to value.

Extracts the value at index.

Panics

If index >= Self::lanes().

Extracts the value at index.

Safety

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

Returns a new vector where the value at index is replaced by new_value.

Panics

If index >= Self::lanes().

Returns a new vector where the value at index is replaced by new_value.

Safety

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

Lane-wise bitwise and of the vector elements.

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

Lane-wise bitwise or of the vector elements.

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

Lane-wise bitwise xor of the vector elements.

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

Are all vector lanes true?

Is any vector lane true?

Are all vector lanes false?

Lane-wise equality comparison.

Lane-wise inequality comparison.

Lane-wise less-than comparison.

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

Lane-wise greater-than comparison.

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

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.

Returns a wrapper that implements PartialOrd.

Returns a wrapper that implements Ord.

Shuffle vector elements according to indices.

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

The resulting type after applying the & operator.

Performs the & operation. Read more

The resulting type after applying the & operator.

Performs the & operation. Read more

Performs the &= operation. Read more

Performs the &= operation. Read more

The resulting type after applying the | operator.

Performs the | operation. Read more

The resulting type after applying the | operator.

Performs the | operation. Read more

Performs the |= operation. Read more

Performs the |= operation. Read more

The resulting type after applying the ^ operator.

Performs the ^ operation. Read more

The resulting type after applying the ^ operator.

Performs the ^ operation. Read more

Performs the ^= operation. Read more

Performs the ^= operation. Read more

Formats the value using the given formatter. Read more

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

Converts to this type from the input type.

Converts to this type from the input type.

Numeric cast from T to Self.

Numeric cast from T to Self.

Numeric cast from T to Self.

Numeric cast from T to Self.

Numeric cast from T to Self.

Numeric cast from T to Self.

Numeric cast from T to Self.

Numeric cast from T to Self.

Numeric cast from T to Self.

The resulting type after applying the ! operator.

Performs the unary ! operation. Read more

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

This method tests for !=.

Element type of the SIMD vector

The number of elements in the SIMD vector.

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