Skip to main content

SveFeatureRegister0

Struct SveFeatureRegister0 

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

The layout of ID_AA64ZFR0_EL1.

Implementations§

Source§

impl SveFeatureRegister0

Source

pub const RSVD1_MASK: u64

Mask of all reserved-as-1 bits.

Source

pub const RSVD0_MASK: u64

Mask of all reserved-as-0 bits.

Source

pub const DEFAULT: u64

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

Source

pub const F64MM_MASK: u64

Unshifted bitmask of f64mm.

Source

pub const F64MM_SHIFT: usize = 56

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

Source

pub const F32MM_MASK: u64

Unshifted bitmask of f32mm.

Source

pub const F32MM_SHIFT: usize = 52

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

Source

pub const F16MM_MASK: u64

Unshifted bitmask of f16mm.

Source

pub const F16MM_SHIFT: usize = 48

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

Source

pub const I8MM_MASK: u64

Unshifted bitmask of i8mm.

Source

pub const I8MM_SHIFT: usize = 44

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

Source

pub const SM4_MASK: u64

Unshifted bitmask of sm4.

Source

pub const SM4_SHIFT: usize = 40

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

Source

pub const SHA3_MASK: u64

Unshifted bitmask of sha3.

Source

pub const SHA3_SHIFT: usize = 32

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

Source

pub const B16B16_MASK: u64

Unshifted bitmask of b16b16.

Source

pub const B16B16_SHIFT: usize = 24

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

Source

pub const BF16_MASK: u64

Unshifted bitmask of bf16.

Source

pub const BF16_SHIFT: usize = 20

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

Source

pub const BIT_PERM_MASK: u64

Unshifted bitmask of bit_perm.

Source

pub const BIT_PERM_SHIFT: usize = 16

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

Source

pub const ELT_PERM_MASK: u64

Unshifted bitmask of elt_perm.

Source

pub const ELT_PERM_SHIFT: usize = 12

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

Source

pub const AES_MASK: u64

Unshifted bitmask of aes.

Source

pub const AES_SHIFT: usize = 4

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

Source

pub const SVE_VER_MASK: u64

Unshifted bitmask of sve_ver.

Source

pub const SVE_VER_SHIFT: usize = 0

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

Source

pub const FIELDS: [FieldMetadata<u64>; 12]

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) -> u64

Source

pub fn f64mm(&self) -> IdAa64Zfr0F64mm

The value of SveFeatureRegister0[59:56].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_f64mm to recover from invalid bit patterns.

Source

pub fn try_f64mm(&self) -> Result<IdAa64Zfr0F64mm, InvalidBits<u8>>

Fallible variant of Self::f64mm.

Source

pub fn set_f64mm(&mut self, value: IdAa64Zfr0F64mm) -> &mut Self

Sets the value of SveFeatureRegister0[59:56].

Source

pub fn f32mm(&self) -> IdAa64Zfr0F32mm

The value of SveFeatureRegister0[55:52].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_f32mm to recover from invalid bit patterns.

Source

pub fn try_f32mm(&self) -> Result<IdAa64Zfr0F32mm, InvalidBits<u8>>

Fallible variant of Self::f32mm.

Source

pub fn set_f32mm(&mut self, value: IdAa64Zfr0F32mm) -> &mut Self

Sets the value of SveFeatureRegister0[55:52].

Source

pub fn f16mm(&self) -> IdAa64Zfr0F16mm

The value of SveFeatureRegister0[51:48].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_f16mm to recover from invalid bit patterns.

Source

pub fn try_f16mm(&self) -> Result<IdAa64Zfr0F16mm, InvalidBits<u8>>

Fallible variant of Self::f16mm.

Source

pub fn set_f16mm(&mut self, value: IdAa64Zfr0F16mm) -> &mut Self

Sets the value of SveFeatureRegister0[51:48].

Source

pub fn i8mm(&self) -> IdAa64Zfr0I8mm

The value of SveFeatureRegister0[47:44].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_i8mm to recover from invalid bit patterns.

Source

pub fn try_i8mm(&self) -> Result<IdAa64Zfr0I8mm, InvalidBits<u8>>

Fallible variant of Self::i8mm.

Source

pub fn set_i8mm(&mut self, value: IdAa64Zfr0I8mm) -> &mut Self

Sets the value of SveFeatureRegister0[47:44].

Source

pub fn sm4(&self) -> IdAa64Zfr0Sm4

The value of SveFeatureRegister0[43:40].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_sm4 to recover from invalid bit patterns.

Source

pub fn try_sm4(&self) -> Result<IdAa64Zfr0Sm4, InvalidBits<u8>>

Fallible variant of Self::sm4.

Source

pub fn set_sm4(&mut self, value: IdAa64Zfr0Sm4) -> &mut Self

Sets the value of SveFeatureRegister0[43:40].

Source

pub fn sha3(&self) -> IdAa64Zfr0Sha3

The value of SveFeatureRegister0[35:32].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_sha3 to recover from invalid bit patterns.

Source

pub fn try_sha3(&self) -> Result<IdAa64Zfr0Sha3, InvalidBits<u8>>

Fallible variant of Self::sha3.

Source

pub fn set_sha3(&mut self, value: IdAa64Zfr0Sha3) -> &mut Self

Sets the value of SveFeatureRegister0[35:32].

Source

pub fn b16b16(&self) -> IdAa64Zfr0B16b16

The value of SveFeatureRegister0[27:24].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_b16b16 to recover from invalid bit patterns.

Source

pub fn try_b16b16(&self) -> Result<IdAa64Zfr0B16b16, InvalidBits<u8>>

Fallible variant of Self::b16b16.

Source

pub fn set_b16b16(&mut self, value: IdAa64Zfr0B16b16) -> &mut Self

Sets the value of SveFeatureRegister0[27:24].

Source

pub fn bf16(&self) -> IdAa64Zfr0Bf16

The value of SveFeatureRegister0[23:20].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_bf16 to recover from invalid bit patterns.

Source

pub fn try_bf16(&self) -> Result<IdAa64Zfr0Bf16, InvalidBits<u8>>

Fallible variant of Self::bf16.

Source

pub fn set_bf16(&mut self, value: IdAa64Zfr0Bf16) -> &mut Self

Sets the value of SveFeatureRegister0[23:20].

Source

pub fn bit_perm(&self) -> IdAa64Zfr0BitPerm

The value of SveFeatureRegister0[19:16].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_bit_perm to recover from invalid bit patterns.

Source

pub fn try_bit_perm(&self) -> Result<IdAa64Zfr0BitPerm, InvalidBits<u8>>

Fallible variant of Self::bit_perm.

Source

pub fn set_bit_perm(&mut self, value: IdAa64Zfr0BitPerm) -> &mut Self

Sets the value of SveFeatureRegister0[19:16].

Source

pub fn elt_perm(&self) -> IdAa64Zfr0EltPerm

The value of SveFeatureRegister0[15:12].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_elt_perm to recover from invalid bit patterns.

Source

pub fn try_elt_perm(&self) -> Result<IdAa64Zfr0EltPerm, InvalidBits<u8>>

Fallible variant of Self::elt_perm.

Source

pub fn set_elt_perm(&mut self, value: IdAa64Zfr0EltPerm) -> &mut Self

Sets the value of SveFeatureRegister0[15:12].

Source

pub fn aes(&self) -> IdAa64Zfr0Aes

The value of SveFeatureRegister0[7:4].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_aes to recover from invalid bit patterns.

Source

pub fn try_aes(&self) -> Result<IdAa64Zfr0Aes, InvalidBits<u8>>

Fallible variant of Self::aes.

Source

pub fn set_aes(&mut self, value: IdAa64Zfr0Aes) -> &mut Self

Sets the value of SveFeatureRegister0[7:4].

Source

pub fn sve_ver(&self) -> IdAa64Zfr0SveVer

The value of SveFeatureRegister0[3:0].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_sve_ver to recover from invalid bit patterns.

Source

pub fn try_sve_ver(&self) -> Result<IdAa64Zfr0SveVer, InvalidBits<u8>>

Fallible variant of Self::sve_ver.

Source

pub fn set_sve_ver(&mut self, value: IdAa64Zfr0SveVer) -> &mut Self

Sets the value of SveFeatureRegister0[3:0].

Source§

impl SveFeatureRegister0

Source

pub fn iter(&self) -> SveFeatureRegister0Iter

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

Trait Implementations§

Source§

impl Binary for SveFeatureRegister0

Source§

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

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

impl Clone for SveFeatureRegister0

Source§

fn clone(&self) -> Self

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 SveFeatureRegister0

Source§

impl Debug for SveFeatureRegister0

Source§

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

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

impl Default for SveFeatureRegister0

Source§

fn default() -> Self

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

Source§

impl Eq for SveFeatureRegister0

Source§

impl From<SveFeatureRegister0> for u64

Source§

fn from(value: SveFeatureRegister0) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for SveFeatureRegister0

Source§

fn from(value: u64) -> Self

Converts to this type from the input type.
Source§

impl IntoIterator for SveFeatureRegister0

Source§

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

The type of the elements being iterated over.
Source§

type IntoIter = SveFeatureRegister0Iter

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 SveFeatureRegister0

Source§

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

The type of the elements being iterated over.
Source§

type IntoIter = SveFeatureRegister0Iter

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 SveFeatureRegister0

Source§

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

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

impl Octal for SveFeatureRegister0

Source§

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

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

impl PartialEq for SveFeatureRegister0

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for SveFeatureRegister0

Source§

impl UpperHex for SveFeatureRegister0

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for SveFeatureRegister0

§

impl RefUnwindSafe for SveFeatureRegister0

§

impl Send for SveFeatureRegister0

§

impl Sync for SveFeatureRegister0

§

impl Unpin for SveFeatureRegister0

§

impl UnsafeUnpin for SveFeatureRegister0

§

impl UnwindSafe for SveFeatureRegister0

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
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

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>,

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

§

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.