val RRX_C : forall 'N, 'N > 1. (bits('N), bits(1)) -> (bits('N), bits(1))
function RRX_C (x, carry_in) = {
let result : bits('N) = [(x >> 1) with ('N - 1) = Bit(carry_in)];
let carry_out : bits(1) = [x[0]];
return((result, carry_out))
}
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.