def rotate

bend-collections@1.0.0.0 · src/crypto/keccak/lane.bend:21

import bend-collections@1.0.0.0/src/crypto/keccak/lane.bend as Lane
import Base
import bend-collections@1.0.0.0/src/crypto/keccak/types.bend as T

21def rotate(s: T.Lane, +n: Nat) -> T.Lane:
22  match s n:
23    case T.W{lo,hi} 0n: T.W{lo,hi}
24    case T.W{lo,hi} 32n: T.W{hi,lo}
25    case T.W{lo,hi} n:
26      rotate_if(lo,hi,n,Nat.is_lt(n,32n))

Uses (4)

Used by (0)

No other definition uses this definition.