#[repr(i32)]pub enum CpuExtLevel {
Generic = 0,
Mmx = 1,
Sse = 2,
Sse2 = 3,
Sse3 = 4,
Ssse3 = 5,
Sse41 = 6,
Sse42 = 7,
Avx = 8,
Avx2 = 9,
Avx2Fma = 10,
Avx512 = 11,
}Expand description
Supported x86-64 SIMD extension levels, ordered by capability.
Variants§
Generic = 0
No SIMD.
Mmx = 1
MMX (legacy, rarely targeted).
Sse = 2
SSE.
Sse2 = 3
SSE2.
Sse3 = 4
SSE3.
Ssse3 = 5
SSSE3.
Sse41 = 6
SSE4.1.
Sse42 = 7
SSE4.2.
Avx = 8
AVX.
Avx2 = 9
AVX2.
Avx2Fma = 10
AVX2 + FMA.
Avx512 = 11
AVX-512 (F+BW+CD+DQ+VL at minimum).
Trait Implementations§
Source§impl Clone for CpuExtLevel
impl Clone for CpuExtLevel
Source§fn clone(&self) -> CpuExtLevel
fn clone(&self) -> CpuExtLevel
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 CpuExtLevel
impl Debug for CpuExtLevel
Source§impl Ord for CpuExtLevel
impl Ord for CpuExtLevel
Source§fn cmp(&self, other: &CpuExtLevel) -> Ordering
fn cmp(&self, other: &CpuExtLevel) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CpuExtLevel
impl PartialEq for CpuExtLevel
Source§impl PartialOrd for CpuExtLevel
impl PartialOrd for CpuExtLevel
impl Copy for CpuExtLevel
impl Eq for CpuExtLevel
impl StructuralPartialEq for CpuExtLevel
Auto Trait Implementations§
impl Freeze for CpuExtLevel
impl RefUnwindSafe for CpuExtLevel
impl Send for CpuExtLevel
impl Sync for CpuExtLevel
impl Unpin for CpuExtLevel
impl UnsafeUnpin for CpuExtLevel
impl UnwindSafe for CpuExtLevel
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