val ROL : forall 'N 'shift, 'N >= 0. (bits('N), int('shift)) -> bits('N)
function ROL (x, shift) = {
assert(shift >= 0 & shift <= 'N);
if shift == 0 then {
return(x)
};
return(ROR(x, 'N - shift))
}
Made from ScarletNX's Sail at 166ad3910f80. sail-arm's definitions are Arm's ASL in Sail (BSD 3-Clause Clear, license); ScarletNX's fixups are GPL-3.0-or-later.