def value
import bend-collections-laws-math@1.0.0.0/spec/math/w64.bend as W64import Base
import bend-collections-laws-math@1.0.0.0/spec/lib/common.bend as C
import bend-collections-laws-math@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 (494)
- bend-collections-laws-math@1.0.0.0/spec/math/generic:u64_val
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/w64dm:X96
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/w64add:sub_value
- bend-collections-laws-math@1.0.0.0/spec/math/f64:rv64
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/f64tools:dmant_value
- …