pub struct FeatureFlagsC(/* private fields */);Expand description
The layout of ECX in FEATURE_FLAGS_C.
Implementations§
Source§impl FeatureFlagsC
impl FeatureFlagsC
Sourcepub const RSVD1_MASK: u32
pub const RSVD1_MASK: u32
Mask of all reserved-as-1 bits.
Sourcepub const RSVD0_MASK: u32
pub const RSVD0_MASK: u32
Mask of all reserved-as-0 bits.
Sourcepub const DEFAULT: u32
pub const DEFAULT: u32
The default value of the layout, combining all field defaults and reserved-as values.
Sourcepub const HYPERVISOR_MASK: u32
pub const HYPERVISOR_MASK: u32
Unshifted bitmask of hypervisor.
Sourcepub const HYPERVISOR_SHIFT: usize = 31
pub const HYPERVISOR_SHIFT: usize = 31
Bit shift (i.e., the low bit) of hypervisor.
Sourcepub const RDRAND_MASK: u32
pub const RDRAND_MASK: u32
Unshifted bitmask of rdrand.
Sourcepub const RDRAND_SHIFT: usize = 30
pub const RDRAND_SHIFT: usize = 30
Bit shift (i.e., the low bit) of rdrand.
Sourcepub const F16C_SHIFT: usize = 29
pub const F16C_SHIFT: usize = 29
Bit shift (i.e., the low bit) of f16c.
Sourcepub const OSXSAVE_MASK: u32
pub const OSXSAVE_MASK: u32
Unshifted bitmask of osxsave.
Sourcepub const OSXSAVE_SHIFT: usize = 27
pub const OSXSAVE_SHIFT: usize = 27
Bit shift (i.e., the low bit) of osxsave.
Sourcepub const XSAVE_MASK: u32
pub const XSAVE_MASK: u32
Unshifted bitmask of xsave.
Sourcepub const XSAVE_SHIFT: usize = 26
pub const XSAVE_SHIFT: usize = 26
Bit shift (i.e., the low bit) of xsave.
Sourcepub const TSC_DEADLINE_MASK: u32
pub const TSC_DEADLINE_MASK: u32
Unshifted bitmask of tsc_deadline.
Sourcepub const TSC_DEADLINE_SHIFT: usize = 24
pub const TSC_DEADLINE_SHIFT: usize = 24
Bit shift (i.e., the low bit) of tsc_deadline.
Sourcepub const POPCNT_MASK: u32
pub const POPCNT_MASK: u32
Unshifted bitmask of popcnt.
Sourcepub const POPCNT_SHIFT: usize = 23
pub const POPCNT_SHIFT: usize = 23
Bit shift (i.e., the low bit) of popcnt.
Sourcepub const MOVBE_MASK: u32
pub const MOVBE_MASK: u32
Unshifted bitmask of movbe.
Sourcepub const MOVBE_SHIFT: usize = 22
pub const MOVBE_SHIFT: usize = 22
Bit shift (i.e., the low bit) of movbe.
Sourcepub const X2APIC_MASK: u32
pub const X2APIC_MASK: u32
Unshifted bitmask of x2apic.
Sourcepub const X2APIC_SHIFT: usize = 21
pub const X2APIC_SHIFT: usize = 21
Bit shift (i.e., the low bit) of x2apic.
Sourcepub const SSE4_2_MASK: u32
pub const SSE4_2_MASK: u32
Unshifted bitmask of sse4_2.
Sourcepub const SSE4_2_SHIFT: usize = 20
pub const SSE4_2_SHIFT: usize = 20
Bit shift (i.e., the low bit) of sse4_2.
Sourcepub const SSE4_1_MASK: u32
pub const SSE4_1_MASK: u32
Unshifted bitmask of sse4_1.
Sourcepub const SSE4_1_SHIFT: usize = 19
pub const SSE4_1_SHIFT: usize = 19
Bit shift (i.e., the low bit) of sse4_1.
Sourcepub const PCID_SHIFT: usize = 17
pub const PCID_SHIFT: usize = 17
Bit shift (i.e., the low bit) of pcid.
Sourcepub const PDCM_SHIFT: usize = 15
pub const PDCM_SHIFT: usize = 15
Bit shift (i.e., the low bit) of pdcm.
Sourcepub const XTPR_SHIFT: usize = 14
pub const XTPR_SHIFT: usize = 14
Bit shift (i.e., the low bit) of xtpr.
Sourcepub const CMPXCHG16B_MASK: u32
pub const CMPXCHG16B_MASK: u32
Unshifted bitmask of cmpxchg16b.
Sourcepub const CMPXCHG16B_SHIFT: usize = 13
pub const CMPXCHG16B_SHIFT: usize = 13
Bit shift (i.e., the low bit) of cmpxchg16b.
Sourcepub const SDBG_SHIFT: usize = 11
pub const SDBG_SHIFT: usize = 11
Bit shift (i.e., the low bit) of sdbg.
Sourcepub const CNXT_ID_MASK: u32
pub const CNXT_ID_MASK: u32
Unshifted bitmask of cnxt_id.
Sourcepub const CNXT_ID_SHIFT: usize = 10
pub const CNXT_ID_SHIFT: usize = 10
Bit shift (i.e., the low bit) of cnxt_id.
Sourcepub const SSSE3_MASK: u32
pub const SSSE3_MASK: u32
Unshifted bitmask of ssse3.
Sourcepub const SSSE3_SHIFT: usize = 9
pub const SSSE3_SHIFT: usize = 9
Bit shift (i.e., the low bit) of ssse3.
Sourcepub const EIST_SHIFT: usize = 7
pub const EIST_SHIFT: usize = 7
Bit shift (i.e., the low bit) of eist.
Sourcepub const DS_CPL_MASK: u32
pub const DS_CPL_MASK: u32
Unshifted bitmask of ds_cpl.
Sourcepub const DS_CPL_SHIFT: usize = 4
pub const DS_CPL_SHIFT: usize = 4
Bit shift (i.e., the low bit) of ds_cpl.
Sourcepub const MONITOR_MASK: u32
pub const MONITOR_MASK: u32
Unshifted bitmask of monitor.
Sourcepub const MONITOR_SHIFT: usize = 3
pub const MONITOR_SHIFT: usize = 3
Bit shift (i.e., the low bit) of monitor.
Sourcepub const DTES64_MASK: u32
pub const DTES64_MASK: u32
Unshifted bitmask of dtes64.
Sourcepub const DTES64_SHIFT: usize = 2
pub const DTES64_SHIFT: usize = 2
Bit shift (i.e., the low bit) of dtes64.
Sourcepub const PCLMULQDQ_MASK: u32
pub const PCLMULQDQ_MASK: u32
Unshifted bitmask of pclmulqdq.
Sourcepub const PCLMULQDQ_SHIFT: usize = 1
pub const PCLMULQDQ_SHIFT: usize = 1
Bit shift (i.e., the low bit) of pclmulqdq.
Sourcepub const SSE3_SHIFT: usize = 0
pub const SSE3_SHIFT: usize = 0
Bit shift (i.e., the low bit) of sse3.
Sourcepub const FIELDS: [FieldMetadata<u32>; 31]
pub const FIELDS: [FieldMetadata<u32>; 31]
Metadata of all named fields in the layout.
Sourcepub const fn new() -> Self
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).
pub const fn bits(self) -> u32
Sourcepub const fn hypervisor(&self) -> bool
pub const fn hypervisor(&self) -> bool
The value of FeatureFlagsC31.
Sourcepub const fn set_hypervisor(&mut self, value: bool) -> &mut Self
pub const fn set_hypervisor(&mut self, value: bool) -> &mut Self
Sets the value of FeatureFlagsC31.
Sourcepub const fn set_rdrand(&mut self, value: bool) -> &mut Self
pub const fn set_rdrand(&mut self, value: bool) -> &mut Self
Sets the value of FeatureFlagsC30.
Sourcepub const fn set_osxsave(&mut self, value: bool) -> &mut Self
pub const fn set_osxsave(&mut self, value: bool) -> &mut Self
Sets the value of FeatureFlagsC27.
Sourcepub const fn tsc_deadline(&self) -> bool
pub const fn tsc_deadline(&self) -> bool
The value of FeatureFlagsC24.
Sourcepub const fn set_tsc_deadline(&mut self, value: bool) -> &mut Self
pub const fn set_tsc_deadline(&mut self, value: bool) -> &mut Self
Sets the value of FeatureFlagsC24.
Sourcepub const fn set_popcnt(&mut self, value: bool) -> &mut Self
pub const fn set_popcnt(&mut self, value: bool) -> &mut Self
Sets the value of FeatureFlagsC23.
Sourcepub const fn set_x2apic(&mut self, value: bool) -> &mut Self
pub const fn set_x2apic(&mut self, value: bool) -> &mut Self
Sets the value of FeatureFlagsC21.
Sourcepub const fn set_sse4_2(&mut self, value: bool) -> &mut Self
pub const fn set_sse4_2(&mut self, value: bool) -> &mut Self
Sets the value of FeatureFlagsC20.
Sourcepub const fn set_sse4_1(&mut self, value: bool) -> &mut Self
pub const fn set_sse4_1(&mut self, value: bool) -> &mut Self
Sets the value of FeatureFlagsC19.
Sourcepub const fn cmpxchg16b(&self) -> bool
pub const fn cmpxchg16b(&self) -> bool
The value of FeatureFlagsC13.
Sourcepub const fn set_cmpxchg16b(&mut self, value: bool) -> &mut Self
pub const fn set_cmpxchg16b(&mut self, value: bool) -> &mut Self
Sets the value of FeatureFlagsC13.
Sourcepub const fn set_cnxt_id(&mut self, value: bool) -> &mut Self
pub const fn set_cnxt_id(&mut self, value: bool) -> &mut Self
Sets the value of FeatureFlagsC10.
Sourcepub const fn set_ds_cpl(&mut self, value: bool) -> &mut Self
pub const fn set_ds_cpl(&mut self, value: bool) -> &mut Self
Sets the value of FeatureFlagsC4.
Sourcepub const fn set_monitor(&mut self, value: bool) -> &mut Self
pub const fn set_monitor(&mut self, value: bool) -> &mut Self
Sets the value of FeatureFlagsC3.
Sourcepub const fn set_dtes64(&mut self, value: bool) -> &mut Self
pub const fn set_dtes64(&mut self, value: bool) -> &mut Self
Sets the value of FeatureFlagsC2.
Sourcepub const fn set_pclmulqdq(&mut self, value: bool) -> &mut Self
pub const fn set_pclmulqdq(&mut self, value: bool) -> &mut Self
Sets the value of FeatureFlagsC1.
Trait Implementations§
Source§impl Binary for FeatureFlagsC
impl Binary for FeatureFlagsC
Source§impl Clone for FeatureFlagsC
impl Clone for FeatureFlagsC
Source§fn clone(&self) -> FeatureFlagsC
fn clone(&self) -> FeatureFlagsC
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for FeatureFlagsC
Source§impl Debug for FeatureFlagsC
impl Debug for FeatureFlagsC
Source§impl Default for FeatureFlagsC
impl Default for FeatureFlagsC
Source§fn default() -> Self
fn default() -> Self
Returns an instance with the default bits set (i.e,. with a
value of Self::DEFAULT.
impl Eq for FeatureFlagsC
Source§impl From<FeatureFlagsC> for u32
impl From<FeatureFlagsC> for u32
Source§fn from(value: FeatureFlagsC) -> Self
fn from(value: FeatureFlagsC) -> Self
Source§impl From<u32> for FeatureFlagsC
impl From<u32> for FeatureFlagsC
Source§impl IntoIterator for FeatureFlagsC
impl IntoIterator for FeatureFlagsC
Source§impl<'a> IntoIterator for &'a FeatureFlagsC
impl<'a> IntoIterator for &'a FeatureFlagsC
Source§impl LowerHex for FeatureFlagsC
impl LowerHex for FeatureFlagsC
Source§impl Octal for FeatureFlagsC
impl Octal for FeatureFlagsC
Source§impl PartialEq for FeatureFlagsC
impl PartialEq for FeatureFlagsC
impl StructuralPartialEq for FeatureFlagsC
Auto Trait Implementations§
impl Freeze for FeatureFlagsC
impl RefUnwindSafe for FeatureFlagsC
impl Send for FeatureFlagsC
impl Sync for FeatureFlagsC
impl Unpin for FeatureFlagsC
impl UnsafeUnpin for FeatureFlagsC
impl UnwindSafe for FeatureFlagsC
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)