pub struct MoveWideConst {
pub bits: u16,
pub shift: u8,
}
Available on crate feature
arm64
only.Expand description
A 16-bit immediate for a MOVZ instruction, with a {0,16,32,48}-bit shift.
Fields§
§bits: u16
The value.
shift: u8
Result is bits
shifted 16*shift bits to the left.
Implementations§
Source§impl MoveWideConst
impl MoveWideConst
Sourcepub fn maybe_from_u64(value: u64) -> Option<MoveWideConst>
pub fn maybe_from_u64(value: u64) -> Option<MoveWideConst>
Construct a MoveWideConst from an arbitrary 64-bit constant if possible.
Sourcepub fn maybe_with_shift(imm: u16, shift: u8) -> Option<MoveWideConst>
pub fn maybe_with_shift(imm: u16, shift: u8) -> Option<MoveWideConst>
Create a MoveWideCosnt
from a given shift, if possible.
Sourcepub fn zero() -> MoveWideConst
pub fn zero() -> MoveWideConst
Create a zero immediate of this format.
Trait Implementations§
Source§impl Clone for MoveWideConst
impl Clone for MoveWideConst
Source§fn clone(&self) -> MoveWideConst
fn clone(&self) -> MoveWideConst
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MoveWideConst
impl Debug for MoveWideConst
impl Copy for MoveWideConst
Auto Trait Implementations§
impl Freeze for MoveWideConst
impl RefUnwindSafe for MoveWideConst
impl Send for MoveWideConst
impl Sync for MoveWideConst
impl Unpin for MoveWideConst
impl UnwindSafe for MoveWideConst
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more