pub struct SimdCapabilities {
pub has_sse2: bool,
pub has_sse41: bool,
pub has_avx2: bool,
pub has_avx512f: bool,
pub has_fma: bool,
pub has_neon: bool,
pub has_sve: bool,
pub has_wasm_simd128: bool,
pub max_vector_width_bytes: usize,
pub best_level: SimdLevel,
}Expand description
Runtime SIMD capabilities of the current platform
Fields§
§has_sse2: boolWhether SSE2 is available (x86_64 baseline, always true on x86_64)
has_sse41: boolWhether SSE4.1 is available
has_avx2: boolWhether AVX2 is available (256-bit integer + float)
has_avx512f: boolWhether AVX-512 Foundation is available
has_fma: boolWhether FMA (fused multiply-add) is available
has_neon: boolWhether ARM NEON is available
has_sve: boolWhether ARM SVE is available
has_wasm_simd128: boolWhether WASM SIMD128 is available
max_vector_width_bytes: usizeThe maximum vector width in bytes supported by the platform
best_level: SimdLevelThe best available SIMD level
Implementations§
Source§impl SimdCapabilities
impl SimdCapabilities
Trait Implementations§
Source§impl Clone for SimdCapabilities
impl Clone for SimdCapabilities
Source§fn clone(&self) -> SimdCapabilities
fn clone(&self) -> SimdCapabilities
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 SimdCapabilities
impl Debug for SimdCapabilities
Auto Trait Implementations§
impl Freeze for SimdCapabilities
impl RefUnwindSafe for SimdCapabilities
impl Send for SimdCapabilities
impl Sync for SimdCapabilities
impl Unpin for SimdCapabilities
impl UnwindSafe for SimdCapabilities
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