def w_pow2
import bend-collections-laws-math@1.0.0.0/src/math/w64.bend as W64import Base
import bend-collections-laws-math@1.0.0.0/src/math/u64.bend as W
522def w_pow2(+k: Nat, small: Bool) -> W.U64:
523 match small:
524 case True{}:
525 W.U64{pow2(k), 0}
526 case False{}:
527 W.U64{0, pow2(Nat.sub(k, 32n))}