Trait AvailableFeatures

Source
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.

Required Methods§

Source

fn _64b(&self) -> bool

Source

fn compat(&self) -> bool

Source

fn sse(&self) -> bool

Source

fn sse2(&self) -> bool

Source

fn sse3(&self) -> bool

Source

fn ssse3(&self) -> bool

Source

fn sse41(&self) -> bool

Source

fn sse42(&self) -> bool

Source

fn bmi1(&self) -> bool

Source

fn bmi2(&self) -> bool

Source

fn lzcnt(&self) -> bool

Source

fn popcnt(&self) -> bool

Source

fn avx(&self) -> bool

Source

fn avx2(&self) -> bool

Source

fn avx512f(&self) -> bool

Source

fn avx512vl(&self) -> bool

Source

fn avx512dq(&self) -> bool

Source

fn avx512bitalg(&self) -> bool

Source

fn avx512vbmi(&self) -> bool

Source

fn cmpxchg16b(&self) -> bool

Source

fn fma(&self) -> bool

Implementors§