Skip to main content

dsll

Function dsll 

Source
pub const fn dsll(v: u64, sa: u32) -> u64
Expand description

DSLL — 64-bit shift left logical.

sa is the effective shift amount, 0..64, masked to 6 bits. The encoding splits that range across two opcodes — DSLL carries a 5-bit field for 0..32 and DSLL32 adds 32 to it for 32..64 — but that split belongs to decode, not here. Pass the effective amount; do not pre-mask to 5 bits, or every *32 variant silently becomes its non-32 counterpart.