Skip to main content

ExtendedFeatureFlagsC

Struct ExtendedFeatureFlagsC 

Source
pub struct ExtendedFeatureFlagsC(/* private fields */);
Expand description

The layout of ECX in EXTENDED_FEATURES_C.

Implementations§

Source§

impl ExtendedFeatureFlagsC

Source

pub const RSVD1_MASK: u32

Mask of all reserved-as-1 bits.

Source

pub const RSVD0_MASK: u32

Mask of all reserved-as-0 bits.

Source

pub const DEFAULT: u32

The default value of the layout, combining all field defaults and reserved-as values.

Source

pub const PKS_MASK: u32

Unshifted bitmask of pks.

Source

pub const PKS_SHIFT: usize = 31

Bit shift (i.e., the low bit) of pks.

Source

pub const SGX_LC_MASK: u32

Unshifted bitmask of sgx_lc.

Source

pub const SGX_LC_SHIFT: usize = 30

Bit shift (i.e., the low bit) of sgx_lc.

Source

pub const MOVDIR64B_MASK: u32

Unshifted bitmask of movdir64b.

Source

pub const MOVDIR64B_SHIFT: usize = 28

Bit shift (i.e., the low bit) of movdir64b.

Source

pub const MOVDIRI_MASK: u32

Unshifted bitmask of movdiri.

Source

pub const MOVDIRI_SHIFT: usize = 27

Bit shift (i.e., the low bit) of movdiri.

Source

pub const CLDEMOTE_MASK: u32

Unshifted bitmask of cldemote.

Source

pub const CLDEMOTE_SHIFT: usize = 25

Bit shift (i.e., the low bit) of cldemote.

Source

pub const KL_MASK: u32

Unshifted bitmask of kl.

Source

pub const KL_SHIFT: usize = 23

Bit shift (i.e., the low bit) of kl.

Source

pub const RDPID_MASK: u32

Unshifted bitmask of rdpid.

Source

pub const RDPID_SHIFT: usize = 22

Bit shift (i.e., the low bit) of rdpid.

Source

pub const LA57_MASK: u32

Unshifted bitmask of la57.

Source

pub const LA57_SHIFT: usize = 16

Bit shift (i.e., the low bit) of la57.

Source

pub const AVX512_VPOPCNTDQ_MASK: u32

Unshifted bitmask of avx512_vpopcntdq.

Source

pub const AVX512_VPOPCNTDQ_SHIFT: usize = 14

Bit shift (i.e., the low bit) of avx512_vpopcntdq.

Source

pub const TME_EN_MASK: u32

Unshifted bitmask of tme_en.

Source

pub const TME_EN_SHIFT: usize = 13

Bit shift (i.e., the low bit) of tme_en.

Source

pub const AVX512_BITALG_MASK: u32

Unshifted bitmask of avx512_bitalg.

Source

pub const AVX512_BITALG_SHIFT: usize = 12

Bit shift (i.e., the low bit) of avx512_bitalg.

Source

pub const AVX512_VNNI_MASK: u32

Unshifted bitmask of avx512_vnni.

Source

pub const AVX512_VNNI_SHIFT: usize = 11

Bit shift (i.e., the low bit) of avx512_vnni.

Source

pub const VPCLMULQDQ_MASK: u32

Unshifted bitmask of vpclmulqdq.

Source

pub const VPCLMULQDQ_SHIFT: usize = 10

Bit shift (i.e., the low bit) of vpclmulqdq.

Source

pub const VAES_MASK: u32

Unshifted bitmask of vaes.

Source

pub const VAES_SHIFT: usize = 9

Bit shift (i.e., the low bit) of vaes.

Source

pub const GFNI_MASK: u32

Unshifted bitmask of gfni.

Source

pub const GFNI_SHIFT: usize = 8

Bit shift (i.e., the low bit) of gfni.

Source

pub const CET_SS_MASK: u32

Unshifted bitmask of cet_ss.

Source

pub const CET_SS_SHIFT: usize = 7

Bit shift (i.e., the low bit) of cet_ss.

Source

pub const AVX512_VBMI2_MASK: u32

Unshifted bitmask of avx512_vbmi2.

Source

pub const AVX512_VBMI2_SHIFT: usize = 6

Bit shift (i.e., the low bit) of avx512_vbmi2.

Source

pub const WAITPKG_MASK: u32

Unshifted bitmask of waitpkg.

Source

pub const WAITPKG_SHIFT: usize = 5

Bit shift (i.e., the low bit) of waitpkg.

Source

pub const OSPKE_MASK: u32

Unshifted bitmask of ospke.

Source

pub const OSPKE_SHIFT: usize = 4

Bit shift (i.e., the low bit) of ospke.

Source

pub const PKU_MASK: u32

Unshifted bitmask of pku.

Source

pub const PKU_SHIFT: usize = 3

Bit shift (i.e., the low bit) of pku.

Source

pub const UMIP_MASK: u32

Unshifted bitmask of umip.

Source

pub const UMIP_SHIFT: usize = 2

Bit shift (i.e., the low bit) of umip.

Source

pub const AVX512_VBMI_MASK: u32

Unshifted bitmask of avx512_vbmi.

Source

pub const AVX512_VBMI_SHIFT: usize = 1

Bit shift (i.e., the low bit) of avx512_vbmi.

Source

pub const PREFETCHWT1_MASK: u32

Unshifted bitmask of prefetchwt1.

Source

pub const PREFETCHWT1_SHIFT: usize = 0

Bit shift (i.e., the low bit) of prefetchwt1.

Source

pub const FIELDS: [FieldMetadata<u32>; 23]

Metadata of all named fields in the layout.

Source

pub const fn new() -> Self

Creates a new instance with reserved-as-1 bits set and all other bits zeroed (i.e., with a value of Self::RSVD1_MASK).

Source

pub const fn bits(self) -> u32

Source

pub const fn pks(&self) -> bool

The value of ExtendedFeatureFlagsC31.

Source

pub const fn set_pks(&mut self, value: bool) -> &mut Self

Sets the value of ExtendedFeatureFlagsC31.

Source

pub const fn sgx_lc(&self) -> bool

The value of ExtendedFeatureFlagsC30.

Source

pub const fn set_sgx_lc(&mut self, value: bool) -> &mut Self

Sets the value of ExtendedFeatureFlagsC30.

Source

pub const fn movdir64b(&self) -> bool

The value of ExtendedFeatureFlagsC28.

Source

pub const fn set_movdir64b(&mut self, value: bool) -> &mut Self

Sets the value of ExtendedFeatureFlagsC28.

Source

pub const fn movdiri(&self) -> bool

The value of ExtendedFeatureFlagsC27.

Source

pub const fn set_movdiri(&mut self, value: bool) -> &mut Self

Sets the value of ExtendedFeatureFlagsC27.

Source

pub const fn cldemote(&self) -> bool

The value of ExtendedFeatureFlagsC25.

Source

pub const fn set_cldemote(&mut self, value: bool) -> &mut Self

Sets the value of ExtendedFeatureFlagsC25.

Source

pub const fn kl(&self) -> bool

The value of ExtendedFeatureFlagsC23.

Source

pub const fn set_kl(&mut self, value: bool) -> &mut Self

Sets the value of ExtendedFeatureFlagsC23.

Source

pub const fn rdpid(&self) -> bool

The value of ExtendedFeatureFlagsC22.

Source

pub const fn set_rdpid(&mut self, value: bool) -> &mut Self

Sets the value of ExtendedFeatureFlagsC22.

Source

pub const fn la57(&self) -> bool

The value of ExtendedFeatureFlagsC16.

Source

pub const fn set_la57(&mut self, value: bool) -> &mut Self

Sets the value of ExtendedFeatureFlagsC16.

Source

pub const fn avx512_vpopcntdq(&self) -> bool

The value of ExtendedFeatureFlagsC14.

Source

pub const fn set_avx512_vpopcntdq(&mut self, value: bool) -> &mut Self

Sets the value of ExtendedFeatureFlagsC14.

Source

pub const fn tme_en(&self) -> bool

The value of ExtendedFeatureFlagsC13.

Source

pub const fn set_tme_en(&mut self, value: bool) -> &mut Self

Sets the value of ExtendedFeatureFlagsC13.

Source

pub const fn avx512_bitalg(&self) -> bool

The value of ExtendedFeatureFlagsC12.

Source

pub const fn set_avx512_bitalg(&mut self, value: bool) -> &mut Self

Sets the value of ExtendedFeatureFlagsC12.

Source

pub const fn avx512_vnni(&self) -> bool

The value of ExtendedFeatureFlagsC11.

Source

pub const fn set_avx512_vnni(&mut self, value: bool) -> &mut Self

Sets the value of ExtendedFeatureFlagsC11.

Source

pub const fn vpclmulqdq(&self) -> bool

The value of ExtendedFeatureFlagsC10.

Source

pub const fn set_vpclmulqdq(&mut self, value: bool) -> &mut Self

Sets the value of ExtendedFeatureFlagsC10.

Source

pub const fn vaes(&self) -> bool

The value of ExtendedFeatureFlagsC9.

Source

pub const fn set_vaes(&mut self, value: bool) -> &mut Self

Sets the value of ExtendedFeatureFlagsC9.

Source

pub const fn gfni(&self) -> bool

The value of ExtendedFeatureFlagsC8.

Source

pub const fn set_gfni(&mut self, value: bool) -> &mut Self

Sets the value of ExtendedFeatureFlagsC8.

Source

pub const fn cet_ss(&self) -> bool

The value of ExtendedFeatureFlagsC7.

Source

pub const fn set_cet_ss(&mut self, value: bool) -> &mut Self

Sets the value of ExtendedFeatureFlagsC7.

Source

pub const fn avx512_vbmi2(&self) -> bool

The value of ExtendedFeatureFlagsC6.

Source

pub const fn set_avx512_vbmi2(&mut self, value: bool) -> &mut Self

Sets the value of ExtendedFeatureFlagsC6.

Source

pub const fn waitpkg(&self) -> bool

The value of ExtendedFeatureFlagsC5.

Source

pub const fn set_waitpkg(&mut self, value: bool) -> &mut Self

Sets the value of ExtendedFeatureFlagsC5.

Source

pub const fn ospke(&self) -> bool

The value of ExtendedFeatureFlagsC4.

Source

pub const fn set_ospke(&mut self, value: bool) -> &mut Self

Sets the value of ExtendedFeatureFlagsC4.

Source

pub const fn pku(&self) -> bool

The value of ExtendedFeatureFlagsC3.

Source

pub const fn set_pku(&mut self, value: bool) -> &mut Self

Sets the value of ExtendedFeatureFlagsC3.

Source

pub const fn umip(&self) -> bool

The value of ExtendedFeatureFlagsC2.

Source

pub const fn set_umip(&mut self, value: bool) -> &mut Self

Sets the value of ExtendedFeatureFlagsC2.

Source

pub const fn avx512_vbmi(&self) -> bool

The value of ExtendedFeatureFlagsC1.

Source

pub const fn set_avx512_vbmi(&mut self, value: bool) -> &mut Self

Sets the value of ExtendedFeatureFlagsC1.

Source

pub const fn prefetchwt1(&self) -> bool

The value of ExtendedFeatureFlagsC0.

Source

pub const fn set_prefetchwt1(&mut self, value: bool) -> &mut Self

Sets the value of ExtendedFeatureFlagsC0.

Source§

impl ExtendedFeatureFlagsC

Source

pub fn iter(&self) -> ExtendedFeatureFlagsCIter

Returns an iterator over (metadata, value) pairs for each field.

Trait Implementations§

Source§

impl Binary for ExtendedFeatureFlagsC

Source§

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

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

impl Clone for ExtendedFeatureFlagsC

Source§

fn clone(&self) -> ExtendedFeatureFlagsC

Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for ExtendedFeatureFlagsC

Source§

impl Debug for ExtendedFeatureFlagsC

Source§

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

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

impl Default for ExtendedFeatureFlagsC

Source§

fn default() -> Self

Returns an instance with the default bits set (i.e,. with a value of Self::DEFAULT.

Source§

impl Eq for ExtendedFeatureFlagsC

Source§

impl From<ExtendedFeatureFlagsC> for u32

Source§

fn from(value: ExtendedFeatureFlagsC) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for ExtendedFeatureFlagsC

Source§

fn from(value: u32) -> Self

Converts to this type from the input type.
Source§

impl IntoIterator for ExtendedFeatureFlagsC

Source§

type Item = (&'static FieldMetadata<u32>, u32)

The type of the elements being iterated over.
Source§

type IntoIter = ExtendedFeatureFlagsCIter

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<'a> IntoIterator for &'a ExtendedFeatureFlagsC

Source§

type Item = (&'static FieldMetadata<u32>, u32)

The type of the elements being iterated over.
Source§

type IntoIter = ExtendedFeatureFlagsCIter

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl LowerHex for ExtendedFeatureFlagsC

Source§

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

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

impl Octal for ExtendedFeatureFlagsC

Source§

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

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

impl PartialEq for ExtendedFeatureFlagsC

Source§

fn eq(&self, other: &ExtendedFeatureFlagsC) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable)§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ExtendedFeatureFlagsC

Source§

impl UpperHex for ExtendedFeatureFlagsC

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for ExtendedFeatureFlagsC

§

impl RefUnwindSafe for ExtendedFeatureFlagsC

§

impl Send for ExtendedFeatureFlagsC

§

impl Sync for ExtendedFeatureFlagsC

§

impl Unpin for ExtendedFeatureFlagsC

§

impl UnsafeUnpin for ExtendedFeatureFlagsC

§

impl UnwindSafe for ExtendedFeatureFlagsC

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

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<Layout, Base> LayoutOver<Base> for Layout
where Layout: Copy + From<Base> + Into<Base>,

§

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

§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.