def mask
import bend-collections-laws-crypto@1.0.0.0/proofs/lib/word.bend as Wordimport Base
import bend-collections-laws-crypto@1.0.0.0/spec/lib/numeric.bend as SNUM
250# the low k bits set
251def mask(+n: Nat, +k: Nat) -> Word(n):
252 SNUM.mask(n, k)
Uses (3)
Used by (55)
- bend-collections-laws-crypto@1.0.0.0/proofs/math/typed/f64bits:andm
- bend-collections-laws-crypto@1.0.0.0/proofs/math/u64/u64div:and32_lt
- bend-collections-laws-crypto@1.0.0.0/proofs/math/typed/w64sqrt:m16
- bend-collections-laws-crypto@1.0.0.0/proofs/math/u64/u64div:and32
- bend-collections-laws-crypto@1.0.0.0/proofs/lib/word:mask_lt
- …