pub struct SimdFeatures {
pub avx512_available: bool,
pub avx2_available: bool,
pub sse42_available: bool,
pub bmi2_available: bool,
}Expand description
SIMD feature detection results, as probed once via
is_x86_feature_detected! and returned by
Sha3_512Kernel::simd_features.
Fields§
§avx512_available: boolWhether the running CPU supports AVX-512F/BW/DQ. Gates both the single-message AVX-512 permutation and the AVX-512×8 batch path.
avx2_available: boolWhether the running CPU supports AVX2 + BMI2. Gates the AVX2×4
batch path used by Sha3_512Kernel::hash_many (std +
x86_64 builds only — not an intra-doc link here since the
method doesn’t exist under kernel/non-x86_64 builds).
sse42_available: boolWhether the running CPU supports SSE4.2. Currently detected but not dispatched to by any permutation path.
bmi2_available: boolWhether the running CPU supports BMI2 (RORX/SHRX etc.),
required alongside AVX2 for the AVX2×4 batch path.
Trait Implementations§
Source§impl Clone for SimdFeatures
impl Clone for SimdFeatures
impl Copy for SimdFeatures
Auto Trait Implementations§
impl Freeze for SimdFeatures
impl RefUnwindSafe for SimdFeatures
impl Send for SimdFeatures
impl Sync for SimdFeatures
impl Unpin for SimdFeatures
impl UnsafeUnpin for SimdFeatures
impl UnwindSafe for SimdFeatures
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<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