def rotl

bend-collections-laws-math@1.0.0.0 · spec/math/random/chacha8rand.bend:54

import bend-collections-laws-math@1.0.0.0/spec/math/random/chacha8rand.bend as Chacha8rand
import Base

54# x <<< n, 0 < n < 32
55def rotl(+x: U32, +n: Nat) -> U32:
56  U32.or(U32.shln(x, n), U32.shrn(x, Nat.sub(32n, n)))

Uses (6)

Used by (1)