def carry

bend-collections@1.0.0.0 · src/crypto/blake/blake2s/blake2s.bend:6

import bend-collections@1.0.0.0/src/crypto/blake/blake2s/blake2s.bend as Blake2s
import 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

Uses (3)

Used by (1)