def rotr
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/blake/blake2s.bend as Blake2simport Base
56# x >>> n: rotation of a 32-bit word right by n bits (0 < n < 32).
57def rotr(+x: U32, +n: Nat) -> U32:
58 U32.or(U32.shrn(x, n), U32.shln(x, Nat.sub(32n, n)))