pub struct SimdCapabilities {
pub sse: bool,
pub sse2: bool,
pub sse3: bool,
pub ssse3: bool,
pub sse41: bool,
pub sse42: bool,
pub avx: bool,
pub avx2: bool,
pub avx512: bool,
pub neon: bool,
pub riscv_vector: bool,
pub riscv_vlen: usize,
}Expand description
Platform-specific SIMD capabilities
Fields§
§sse: bool§sse2: bool§sse3: bool§ssse3: bool§sse41: bool§sse42: bool§avx: bool§avx2: bool§avx512: bool§neon: bool§riscv_vector: bool§riscv_vlen: usizeImplementations§
Source§impl SimdCapabilities
impl SimdCapabilities
Sourcepub fn best_f32_width(&self) -> usize
pub fn best_f32_width(&self) -> usize
Get the best available SIMD width for f32 operations
Sourcepub fn best_f64_width(&self) -> usize
pub fn best_f64_width(&self) -> usize
Get the best available SIMD width for f64 operations
Sourcepub fn platform_name(&self) -> &'static str
pub fn platform_name(&self) -> &'static str
Get the platform name for current SIMD capabilities
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
impl Copy 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 UnsafeUnpin 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
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