pub struct SimdConfig {
pub avx512f_enabled: bool,
pub avx2_enabled: bool,
pub fma_enabled: bool,
pub avx512vnni_enabled: bool,
pub neon_enabled: bool,
pub dotprod_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).
dotprod_enabled: boolUnstable: whether aarch64 FEAT_DotProd is available for SDOT/UDOT dispatch.
Always false off aarch64. See docs/simd.md for availability rules.
Implementations§
Source§impl SimdConfig
impl SimdConfig
Sourcepub fn simd128_enabled(&self) -> bool
pub fn simd128_enabled(&self) -> bool
Unstable: reports whether this wasm32 artifact was built with SIMD128.
See docs/simd.md for the compile-time dispatch model.
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 moreimpl Copy for SimdConfig
Source§impl Debug for SimdConfig
impl Debug for SimdConfig
Source§impl Default for SimdConfig
impl Default for SimdConfig
impl Eq for SimdConfig
Source§impl PartialEq for SimdConfig
impl PartialEq for SimdConfig
impl StructuralPartialEq 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.