def rol18

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

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

75def rol18(a: T.Lane) -> T.Lane:
76  match a:
77    case T.W{+lo,+hi}:
78      T.W{U32.or(U32.shln(lo,18n),U32.shrn(hi,14n)),U32.or(U32.shln(hi,18n),U32.shrn(lo,14n))}

Uses (4)

Used by (2)