def rot16

bend-collections@1.0.0.0 · src/crypto/blake/blake2b/lane.bend:26

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

26def rot16(a: T.Lane) -> T.Lane:
27  match a:
28    case T.W{+lo,+hi}:
29      T.W{U32.or(U32.shrn(lo,16n),U32.shln(hi,16n)),U32.or(U32.shrn(hi,16n),U32.shln(lo,16n))}

Uses (4)

Used by (2)