pub trait AvailableFeatures {
Show 21 methods
// Required methods
fn _64b(&self) -> bool;
fn compat(&self) -> bool;
fn sse(&self) -> bool;
fn sse2(&self) -> bool;
fn sse3(&self) -> bool;
fn ssse3(&self) -> bool;
fn sse41(&self) -> bool;
fn sse42(&self) -> bool;
fn bmi1(&self) -> bool;
fn bmi2(&self) -> bool;
fn lzcnt(&self) -> bool;
fn popcnt(&self) -> bool;
fn avx(&self) -> bool;
fn avx2(&self) -> bool;
fn avx512f(&self) -> bool;
fn avx512vl(&self) -> bool;
fn avx512dq(&self) -> bool;
fn avx512bitalg(&self) -> bool;
fn avx512vbmi(&self) -> bool;
fn cmpxchg16b(&self) -> bool;
fn fma(&self) -> bool;
}
Expand description
A trait for querying CPU features.
This is generated from the dsl::Feature
enumeration defined in the meta
crate. It allows querying the CPUID features required by an instruction; see
Inst::is_available
and for_each_feature
.