def shr_jam
import bend-collections-laws-crypto@1.0.0.0/src/math/w64.bend as W64import Base
import bend-collections-laws-crypto@1.0.0.0/src/math/u64.bend as W
541# a >> k with the bits shifted out OR-ed into bit 0 (SoftFloat's
542# shiftRightJam64)
543def shr_jam(+a: W.U64, +k: Nat) -> W.U64:
544 jam_pick(a, k, Nat.is_le(64n, k))