def carry
import bend-collections@1.0.0.0/src/crypto/blake/blake2s/blake2s.bend as Blake2simport Base
6# The 64-bit byte counter t is kept as two U32 halves (t0 low, t1 high).
7def carry(c: Bool, hi: U32) -> U32:
8 match c:
9 case True{}: U32.add(hi,1)
10 case False{}: hi