pub struct Flags { /* private fields */ }
Expand description
Flags group x86
.
Implementations§
Source§impl Flags
impl Flags
User-defined settings.
Sourcepub fn predicate_view(&self) -> PredicateView<'_>
pub fn predicate_view(&self) -> PredicateView<'_>
Get a view of the boolean predicates.
Sourcepub fn has_avx512bitalg(&self) -> bool
pub fn has_avx512bitalg(&self) -> bool
Has support for AVX512BITALG. AVX512BITALG: CPUID.07H:ECX.AVX512BITALG[bit 12]
Sourcepub fn has_avx512dq(&self) -> bool
pub fn has_avx512dq(&self) -> bool
Has support for AVX512DQ. AVX512DQ: CPUID.07H:EBX.AVX512DQ[bit 17]
Sourcepub fn has_avx512vl(&self) -> bool
pub fn has_avx512vl(&self) -> bool
Has support for AVX512VL. AVX512VL: CPUID.07H:EBX.AVX512VL[bit 31]
Sourcepub fn has_avx512vbmi(&self) -> bool
pub fn has_avx512vbmi(&self) -> bool
Has support for AVX512VMBI. AVX512VBMI: CPUID.07H:ECX.AVX512VBMI[bit 1]
Sourcepub fn has_avx512f(&self) -> bool
pub fn has_avx512f(&self) -> bool
Has support for AVX512F. AVX512F: CPUID.07H:EBX.AVX512F[bit 16]
Sourcepub fn has_popcnt(&self) -> bool
pub fn has_popcnt(&self) -> bool
Has support for POPCNT. POPCNT: CPUID.01H:ECX.POPCNT[bit 23]
Sourcepub fn has_bmi1(&self) -> bool
pub fn has_bmi1(&self) -> bool
Has support for BMI1. BMI1: CPUID.(EAX=07H, ECX=0H):EBX.BMI1[bit 3]
Sourcepub fn has_bmi2(&self) -> bool
pub fn has_bmi2(&self) -> bool
Has support for BMI2. BMI2: CPUID.(EAX=07H, ECX=0H):EBX.BMI2[bit 8]
Sourcepub fn has_lzcnt(&self) -> bool
pub fn has_lzcnt(&self) -> bool
Has support for LZCNT. LZCNT: CPUID.EAX=80000001H:ECX.LZCNT[bit 5]
Sourcepub fn use_avx512bitalg(&self) -> bool
pub fn use_avx512bitalg(&self) -> bool
Computed predicate x86.has_avx512bitalg()
.
Sourcepub fn use_avx512dq(&self) -> bool
pub fn use_avx512dq(&self) -> bool
Computed predicate x86.has_avx512dq()
.
Sourcepub fn use_avx512f(&self) -> bool
pub fn use_avx512f(&self) -> bool
Computed predicate x86.has_avx512f()
.
Sourcepub fn use_avx512vbmi(&self) -> bool
pub fn use_avx512vbmi(&self) -> bool
Computed predicate x86.has_avx512vbmi()
.
Sourcepub fn use_avx512vl(&self) -> bool
pub fn use_avx512vl(&self) -> bool
Computed predicate x86.has_avx512vl()
.
Sourcepub fn use_popcnt(&self) -> bool
pub fn use_popcnt(&self) -> bool
Computed predicate x86.has_popcnt() && x86.has_sse42()
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Flags
impl RefUnwindSafe for Flags
impl Send for Flags
impl Sync for Flags
impl Unpin for Flags
impl UnwindSafe for Flags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)