pub enum SimdInstructionSet {
None,
SSE,
SSE2,
SSE3,
SSSE3,
SSE41,
SSE42,
AVX,
AVX2,
AVX512,
NEON,
SVE,
}Expand description
SIMD instruction set.
Variants§
None
No SIMD support
SSE
SSE (Streaming SIMD Extensions)
SSE2
SSE2
SSE3
SSE3
SSSE3
SSSE3
SSE41
SSE4.1
SSE42
SSE4.2
AVX
AVX (Advanced Vector Extensions)
AVX2
AVX2
AVX512
AVX-512
NEON
ARM NEON
SVE
SVE (Scalable Vector Extension)
Implementations§
Source§impl SimdInstructionSet
impl SimdInstructionSet
Sourcepub fn vector_width_bytes(&self) -> usize
pub fn vector_width_bytes(&self) -> usize
Get the vector width in bytes.
Sourcepub fn preferred_alignment(&self) -> usize
pub fn preferred_alignment(&self) -> usize
Get the preferred alignment in bytes.
Trait Implementations§
Source§impl Clone for SimdInstructionSet
impl Clone for SimdInstructionSet
Source§fn clone(&self) -> SimdInstructionSet
fn clone(&self) -> SimdInstructionSet
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimdInstructionSet
impl Debug for SimdInstructionSet
Source§impl<'de> Deserialize<'de> for SimdInstructionSet
impl<'de> Deserialize<'de> for SimdInstructionSet
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for SimdInstructionSet
impl Hash for SimdInstructionSet
Source§impl PartialEq for SimdInstructionSet
impl PartialEq for SimdInstructionSet
Source§impl Serialize for SimdInstructionSet
impl Serialize for SimdInstructionSet
impl Copy for SimdInstructionSet
impl Eq for SimdInstructionSet
impl StructuralPartialEq for SimdInstructionSet
Auto Trait Implementations§
impl Freeze for SimdInstructionSet
impl RefUnwindSafe for SimdInstructionSet
impl Send for SimdInstructionSet
impl Sync for SimdInstructionSet
impl Unpin for SimdInstructionSet
impl UnwindSafe for SimdInstructionSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more