def pow2

bend-collections-laws-crypto@1.0.0.0 · src/math/f64.bend:627

import bend-collections-laws-crypto@1.0.0.0/src/math/f64.bend as F64
import Base
import bend-collections-laws-crypto@1.0.0.0/src/math/u64.bend as W

627# 2^k for k <= 1023
628def pow2(+k: Nat) -> F64:
629  pack(False{}, Nat.add(1022n, k), W.U64{0, 1048576})

Uses (6)

Used by (1)