def rol61

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

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

145def rol61(a: T.Lane) -> T.Lane:
146  match a:
147    case T.W{+lo,+hi}:
148      T.W{U32.or(U32.shln(hi,29n),U32.shrn(lo,3n)),U32.or(U32.shln(lo,29n),U32.shrn(hi,3n))}

Uses (4)

Used by (2)