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_avx2_simd(&self) -> bool
pub fn use_avx2_simd(&self) -> bool
Computed predicate shared.enable_simd() && x86.has_avx() && x86.has_avx2()
.
sourcepub fn use_avx512bitalg_simd(&self) -> bool
pub fn use_avx512bitalg_simd(&self) -> bool
Computed predicate shared.enable_simd() && x86.has_avx512bitalg()
.
sourcepub fn use_avx512dq_simd(&self) -> bool
pub fn use_avx512dq_simd(&self) -> bool
Computed predicate shared.enable_simd() && x86.has_avx512dq()
.
sourcepub fn use_avx512f_simd(&self) -> bool
pub fn use_avx512f_simd(&self) -> bool
Computed predicate shared.enable_simd() && x86.has_avx512f()
.
sourcepub fn use_avx512vbmi_simd(&self) -> bool
pub fn use_avx512vbmi_simd(&self) -> bool
Computed predicate shared.enable_simd() && x86.has_avx512vbmi()
.
sourcepub fn use_avx512vl_simd(&self) -> bool
pub fn use_avx512vl_simd(&self) -> bool
Computed predicate shared.enable_simd() && x86.has_avx512vl()
.
sourcepub fn use_avx_simd(&self) -> bool
pub fn use_avx_simd(&self) -> bool
Computed predicate shared.enable_simd() && x86.has_avx()
.
sourcepub fn use_popcnt(&self) -> bool
pub fn use_popcnt(&self) -> bool
Computed predicate x86.has_popcnt() && x86.has_sse42()
.
sourcepub fn use_sse41_simd(&self) -> bool
pub fn use_sse41_simd(&self) -> bool
Computed predicate shared.enable_simd() && x86.has_sse41()
.
sourcepub fn use_sse42_simd(&self) -> bool
pub fn use_sse42_simd(&self) -> bool
Computed predicate shared.enable_simd() && x86.has_sse41() && x86.has_sse42()
.
sourcepub fn use_ssse3_simd(&self) -> bool
pub fn use_ssse3_simd(&self) -> bool
Computed predicate shared.enable_simd() && x86.has_ssse3()
.
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)