pub struct SimdConfig {
pub avx512f_enabled: bool,
pub avx2_enabled: bool,
pub fma_enabled: bool,
pub avx512vnni_enabled: bool,
pub neon_enabled: bool,
}Expand description
Unstable: SIMD dispatch internals; fields may be added as new ISAs are supported.
SIMD configuration with runtime feature detection.
Fields§
§avx512f_enabled: boolUnstable: AVX-512F support available (x86_64).
avx2_enabled: boolUnstable: AVX2 support available (x86_64).
fma_enabled: boolUnstable: FMA (Fused Multiply-Add) support available (x86_64).
avx512vnni_enabled: boolUnstable: AVX-512F + AVX-512VNNI support available (x86_64).
neon_enabled: boolUnstable: NEON support available (aarch64/ARM64).
Implementations§
Source§impl SimdConfig
impl SimdConfig
Sourcepub fn simd_available(&self) -> bool
pub fn simd_available(&self) -> bool
Unstable: check if any SIMD is available; logic may expand with new ISAs.
Trait Implementations§
Source§impl Clone for SimdConfig
impl Clone for SimdConfig
Source§fn clone(&self) -> SimdConfig
fn clone(&self) -> SimdConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SimdConfig
impl Debug for SimdConfig
Source§impl Default for SimdConfig
impl Default for SimdConfig
impl Copy for SimdConfig
Auto Trait Implementations§
impl Freeze for SimdConfig
impl RefUnwindSafe for SimdConfig
impl Send for SimdConfig
impl Sync for SimdConfig
impl Unpin for SimdConfig
impl UnsafeUnpin for SimdConfig
impl UnwindSafe for SimdConfig
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