pub struct SimdInstructionCounts {
pub scalar: u32,
pub sse: u32,
pub avx: u32,
pub avx512: u32,
}Expand description
SIMD instruction counts
Fields§
§scalar: u32Scalar instructions
sse: u32SSE/SSE2 instructions (128-bit)
avx: u32AVX/AVX2 instructions (256-bit)
avx512: u32AVX-512 instructions (512-bit)
Implementations§
Source§impl SimdInstructionCounts
impl SimdInstructionCounts
Sourcepub fn vectorization_ratio(&self) -> f32
pub fn vectorization_ratio(&self) -> f32
Calculate vectorization ratio (0.0-1.0)
Trait Implementations§
Source§impl Clone for SimdInstructionCounts
impl Clone for SimdInstructionCounts
Source§fn clone(&self) -> SimdInstructionCounts
fn clone(&self) -> SimdInstructionCounts
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 SimdInstructionCounts
impl Debug for SimdInstructionCounts
Source§impl Default for SimdInstructionCounts
impl Default for SimdInstructionCounts
Source§fn default() -> SimdInstructionCounts
fn default() -> SimdInstructionCounts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SimdInstructionCounts
impl RefUnwindSafe for SimdInstructionCounts
impl Send for SimdInstructionCounts
impl Sync for SimdInstructionCounts
impl Unpin for SimdInstructionCounts
impl UnwindSafe for SimdInstructionCounts
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