pub struct Flags { /* private fields */ }
Expand description

Flags group x86.

Implementations§

source§

impl Flags

source

pub fn new(shared: &Flags, builder: &Builder) -> Self

Create flags x86 settings group.

source§

impl Flags

source

pub fn iter(&self) -> impl Iterator<Item = Value>

Iterates the setting values.

source§

impl Flags

User-defined settings.

source

pub fn predicate_view(&self) -> PredicateView<'_>

Get a view of the boolean predicates.

source

pub fn has_sse3(&self) -> bool

Has support for SSE3. SSE3: CPUID.01H:ECX.SSE3[bit 0]

source

pub fn has_ssse3(&self) -> bool

Has support for SSSE3. SSSE3: CPUID.01H:ECX.SSSE3[bit 9]

source

pub fn has_sse41(&self) -> bool

Has support for SSE4.1. SSE4.1: CPUID.01H:ECX.SSE4_1[bit 19]

source

pub fn has_sse42(&self) -> bool

Has support for SSE4.2. SSE4.2: CPUID.01H:ECX.SSE4_2[bit 20]

source

pub fn has_avx(&self) -> bool

Has support for AVX. AVX: CPUID.01H:ECX.AVX[bit 28]

source

pub fn has_avx2(&self) -> bool

Has support for AVX2. AVX2: CPUID.07H:EBX.AVX2[bit 5]

source

pub fn has_fma(&self) -> bool

Has support for FMA. FMA: CPUID.01H:ECX.FMA[bit 12]

source

pub fn has_avx512bitalg(&self) -> bool

Has support for AVX512BITALG. AVX512BITALG: CPUID.07H:ECX.AVX512BITALG[bit 12]

source

pub fn has_avx512dq(&self) -> bool

Has support for AVX512DQ. AVX512DQ: CPUID.07H:EBX.AVX512DQ[bit 17]

source

pub fn has_avx512vl(&self) -> bool

Has support for AVX512VL. AVX512VL: CPUID.07H:EBX.AVX512VL[bit 31]

source

pub fn has_avx512vbmi(&self) -> bool

Has support for AVX512VMBI. AVX512VBMI: CPUID.07H:ECX.AVX512VBMI[bit 1]

source

pub fn has_avx512f(&self) -> bool

Has support for AVX512F. AVX512F: CPUID.07H:EBX.AVX512F[bit 16]

source

pub fn has_popcnt(&self) -> bool

Has support for POPCNT. POPCNT: CPUID.01H:ECX.POPCNT[bit 23]

source

pub fn has_bmi1(&self) -> bool

Has support for BMI1. BMI1: CPUID.(EAX=07H, ECX=0H):EBX.BMI1[bit 3]

source

pub fn has_bmi2(&self) -> bool

Has support for BMI2. BMI2: CPUID.(EAX=07H, ECX=0H):EBX.BMI2[bit 8]

source

pub fn has_lzcnt(&self) -> bool

Has support for LZCNT. LZCNT: CPUID.EAX=80000001H:ECX.LZCNT[bit 5]

source

pub fn use_avx(&self) -> bool

Computed predicate x86.has_avx().

source

pub fn use_avx2(&self) -> bool

Computed predicate x86.has_avx() && x86.has_avx2().

source

pub fn use_avx512bitalg(&self) -> bool

Computed predicate x86.has_avx512bitalg().

source

pub fn use_avx512dq(&self) -> bool

Computed predicate x86.has_avx512dq().

source

pub fn use_avx512f(&self) -> bool

Computed predicate x86.has_avx512f().

source

pub fn use_avx512vbmi(&self) -> bool

Computed predicate x86.has_avx512vbmi().

source

pub fn use_avx512vl(&self) -> bool

Computed predicate x86.has_avx512vl().

source

pub fn use_bmi1(&self) -> bool

Computed predicate x86.has_bmi1().

source

pub fn use_fma(&self) -> bool

Computed predicate x86.has_avx() && x86.has_fma().

source

pub fn use_lzcnt(&self) -> bool

Computed predicate x86.has_lzcnt().

source

pub fn use_popcnt(&self) -> bool

Computed predicate x86.has_popcnt() && x86.has_sse42().

source

pub fn use_sse41(&self) -> bool

Computed predicate x86.has_sse41().

source

pub fn use_sse42(&self) -> bool

Computed predicate x86.has_sse41() && x86.has_sse42().

source

pub fn use_ssse3(&self) -> bool

Computed predicate x86.has_ssse3().

Trait Implementations§

source§

impl Clone for Flags

source§

fn clone(&self) -> Flags

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Display for Flags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for Flags

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more

Auto Trait Implementations§

§

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.