def rot24
import bend-collections@1.0.0.0/src/crypto/blake/blake2b/lane.bend as Laneimport Base
import bend-collections@1.0.0.0/src/crypto/blake/blake2b/types.bend as T
21def rot24(a: T.Lane) -> T.Lane:
22 match a:
23 case T.W{+lo,+hi}:
24 T.W{U32.or(U32.shrn(lo,24n),U32.shln(hi,8n)),U32.or(U32.shrn(hi,24n),U32.shln(lo,8n))}