def last_bit

bend-collections@1.0.0.0 · spec/crypto/keccak/main.bend:25

import bend-collections@1.0.0.0/spec/crypto/keccak/main.bend as BendCollections
import Base

25def last_bit(w: U32, last: Bool) -> U32:
26  match last:
27    case False{}: w
28    case True{}: U32.or(w,2147483648)

Uses (3)

Used by (1)