pub struct ExtendedControlRegister0(/* private fields */);Expand description
[intel/vol3]: 2.6 Extended Control Registers
The layout of extended control register 0 (XCR0).
Implementations§
Source§impl ExtendedControlRegister0
impl ExtendedControlRegister0
Sourcepub const RSVD1_MASK: u64
pub const RSVD1_MASK: u64
Mask of all reserved-as-1 bits.
Sourcepub const RSVD0_MASK: u64
pub const RSVD0_MASK: u64
Mask of all reserved-as-0 bits.
Sourcepub const DEFAULT: u64
pub const DEFAULT: u64
The default value of the layout, combining all field defaults and reserved-as values.
Sourcepub const PKRU_SHIFT: usize = 9
pub const PKRU_SHIFT: usize = 9
Bit shift (i.e., the low bit) of pkru.
Sourcepub const HI16_ZMM_MASK: u64
pub const HI16_ZMM_MASK: u64
Unshifted bitmask of hi16_zmm.
Sourcepub const HI16_ZMM_SHIFT: usize = 7
pub const HI16_ZMM_SHIFT: usize = 7
Bit shift (i.e., the low bit) of hi16_zmm.
Sourcepub const ZMM_HI256_MASK: u64
pub const ZMM_HI256_MASK: u64
Unshifted bitmask of zmm_hi256.
Sourcepub const ZMM_HI256_SHIFT: usize = 6
pub const ZMM_HI256_SHIFT: usize = 6
Bit shift (i.e., the low bit) of zmm_hi256.
Sourcepub const OPMASK_MASK: u64
pub const OPMASK_MASK: u64
Unshifted bitmask of opmask.
Sourcepub const OPMASK_SHIFT: usize = 5
pub const OPMASK_SHIFT: usize = 5
Bit shift (i.e., the low bit) of opmask.
Sourcepub const BNDCSR_MASK: u64
pub const BNDCSR_MASK: u64
Unshifted bitmask of bndcsr.
Sourcepub const BNDCSR_SHIFT: usize = 4
pub const BNDCSR_SHIFT: usize = 4
Bit shift (i.e., the low bit) of bndcsr.
Sourcepub const BNDREG_MASK: u64
pub const BNDREG_MASK: u64
Unshifted bitmask of bndreg.
Sourcepub const BNDREG_SHIFT: usize = 3
pub const BNDREG_SHIFT: usize = 3
Bit shift (i.e., the low bit) of bndreg.
Sourcepub const FIELDS: [FieldMetadata<u64>; 9]
pub const FIELDS: [FieldMetadata<u64>; 9]
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) -> u64
Sourcepub const fn set_pkru(&mut self, value: bool) -> &mut Self
pub const fn set_pkru(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedControlRegister09.
Sourcepub const fn set_hi16_zmm(&mut self, value: bool) -> &mut Self
pub const fn set_hi16_zmm(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedControlRegister07.
Sourcepub const fn set_zmm_hi256(&mut self, value: bool) -> &mut Self
pub const fn set_zmm_hi256(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedControlRegister06.
Sourcepub const fn set_opmask(&mut self, value: bool) -> &mut Self
pub const fn set_opmask(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedControlRegister05.
Sourcepub const fn set_bndcsr(&mut self, value: bool) -> &mut Self
pub const fn set_bndcsr(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedControlRegister04.
Sourcepub const fn set_bndreg(&mut self, value: bool) -> &mut Self
pub const fn set_bndreg(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedControlRegister03.
Sourcepub const fn set_avx(&mut self, value: bool) -> &mut Self
pub const fn set_avx(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedControlRegister02.
Trait Implementations§
Source§impl Binary for ExtendedControlRegister0
impl Binary for ExtendedControlRegister0
Source§impl Clone for ExtendedControlRegister0
impl Clone for ExtendedControlRegister0
Source§fn clone(&self) -> ExtendedControlRegister0
fn clone(&self) -> ExtendedControlRegister0
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ExtendedControlRegister0
Source§impl Debug for ExtendedControlRegister0
impl Debug for ExtendedControlRegister0
Source§impl Default for ExtendedControlRegister0
impl Default for ExtendedControlRegister0
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 ExtendedControlRegister0
Source§impl From<ExtendedControlRegister0> for u64
impl From<ExtendedControlRegister0> for u64
Source§fn from(value: ExtendedControlRegister0) -> Self
fn from(value: ExtendedControlRegister0) -> Self
Source§impl From<u64> for ExtendedControlRegister0
impl From<u64> for ExtendedControlRegister0
Source§impl IntoIterator for ExtendedControlRegister0
impl IntoIterator for ExtendedControlRegister0
Source§impl<'a> IntoIterator for &'a ExtendedControlRegister0
impl<'a> IntoIterator for &'a ExtendedControlRegister0
Source§impl LowerHex for ExtendedControlRegister0
impl LowerHex for ExtendedControlRegister0
Source§impl Octal for ExtendedControlRegister0
impl Octal for ExtendedControlRegister0
Source§impl PartialEq for ExtendedControlRegister0
impl PartialEq for ExtendedControlRegister0
impl StructuralPartialEq for ExtendedControlRegister0
Auto Trait Implementations§
impl Freeze for ExtendedControlRegister0
impl RefUnwindSafe for ExtendedControlRegister0
impl Send for ExtendedControlRegister0
impl Sync for ExtendedControlRegister0
impl Unpin for ExtendedControlRegister0
impl UnsafeUnpin for ExtendedControlRegister0
impl UnwindSafe for ExtendedControlRegister0
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)