def value
import bend-collections-laws-crypto@1.0.0.0/spec/math/w64.bend as W64import Base
import bend-collections-laws-crypto@1.0.0.0/spec/lib/common.bend as C
import bend-collections-laws-crypto@1.0.0.0/src/math/u64.bend as W
35def value(a: W.U64) -> Nat:
36 match a:
37 case W.U64{lo, hi}:
38 Nat.add(U32.to_nat(lo), C.shift(32n, U32.to_nat(hi)))
Uses (5)
Used by (140)
- bend-collections-laws-crypto@1.0.0.0/proofs/math/typed/w64dm:X96
- bend-collections-laws-crypto@1.0.0.0/spec/math/random:val_pair
- bend-collections-laws-crypto@1.0.0.0/spec/math/random/rand:below_go
- bend-collections-laws-crypto@1.0.0.0/proofs/math/typed/w64mul:mul32_value
- bend-collections-laws-crypto@1.0.0.0/proofs/math/typed/w64m128:fit64
- …