pub enum SimdLevel {
Scalar,
Simd128,
Simd256,
Simd512,
}Expand description
Available SIMD instruction set levels
Variants§
Scalar
No SIMD - pure scalar operations
Simd128
128-bit SIMD (SSE2 on x86-64, NEON on aarch64)
Simd256
256-bit SIMD (AVX2 on x86-64)
Simd512
512-bit SIMD (AVX-512 on x86-64)
Implementations§
Source§impl SimdLevel
impl SimdLevel
Sourcepub const fn preferred_alignment(self) -> usize
pub const fn preferred_alignment(self) -> usize
Get the preferred memory alignment in bytes
Sourcepub const fn width_bits(self) -> usize
pub const fn width_bits(self) -> usize
Get the register width in bits
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 UnsafeUnpin 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