Function eikon3ds_core::arch::instruction_specified_shift::rotate_right
source · pub fn rotate_right(
val: u32,
shift_amount: u32,
carry_flag: bool
) -> ShiftResults
Expand description
Rotates bits right by an instruction specified amount.
Bits moved out of the right-hand end are rotated back into the left-hand end. If the shift amount is zero, the instruction becomes a RRX or rotate right extended. A RRX is a shift right by 1 bit, with bit 0 being the carry out and bit 31 being the carry flag.