def bl_pick

bend-collections-laws-crypto@1.0.0.0 · src/math/w64.bend:209

import bend-collections-laws-crypto@1.0.0.0/src/math/w64.bend as W64
import Base

209def bl_pick(+x: U32, +t: U32, +k: Nat, +base: Nat, big: Bool) -> Nat & U32:
210  match big:
211    case True{}:
212      (Nat.add(base, k), U32.shrn(x, k))
213    case False{}:
214      (base, x)

Uses (7)

Used by (2)