def shr_pick

bend-collections@1.0.0.0 · src/math/w64.bend:263

import bend-collections@1.0.0.0/src/math/w64.bend as W64
import Base
import bend-collections@1.0.0.0/src/math/u64.bend as W

263def shr_pick(+a: W.U64, +k: Nat, small: Bool) -> W.U64:
264  match small:
265    case True{}:
266      shr_lt(a, k)
267    case False{}:
268      shr_ge(a, k, Nat.is_le(64n, k))

Uses (6)

Used by (1)