def rol6

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

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

50def rol6(a: T.Lane) -> T.Lane:
51  match a:
52    case T.W{+lo,+hi}:
53      T.W{U32.or(U32.shln(lo,6n),U32.shrn(hi,26n)),U32.or(U32.shln(hi,6n),U32.shrn(lo,26n))}

Uses (4)

Used by (2)