pub enum SimdLevel {
Scalar,
Sse2,
Avx,
Avx2,
Avx512,
Neon,
}Expand description
CPU feature detection for runtime SIMD dispatch. Available SIMD instruction sets.
Variants§
Scalar
No SIMD, use scalar code.
Sse2
SSE2 (128-bit, available on all x86-64).
Avx
AVX (256-bit float).
Avx2
AVX2 (256-bit integer + FMA).
Avx512
AVX-512 (512-bit).
Neon
ARM NEON (128-bit).
Implementations§
Trait Implementations§
Source§impl Ord for SimdLevel
impl Ord for SimdLevel
Source§impl PartialOrd for SimdLevel
impl PartialOrd for SimdLevel
impl Copy for SimdLevel
impl Eq for SimdLevel
impl StructuralPartialEq for SimdLevel
Auto Trait Implementations§
impl Freeze for SimdLevel
impl RefUnwindSafe for SimdLevel
impl Send for SimdLevel
impl Sync for SimdLevel
impl Unpin for SimdLevel
impl UnwindSafe for SimdLevel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more