def value128

bend-collections-laws-math@1.0.0.0 · spec/math/random.bend:83

import bend-collections-laws-math@1.0.0.0/spec/math/random.bend as Random
import 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/random/pcg.bend as P
import bend-collections-laws-math@1.0.0.0/spec/math/w64.bend as SW

83def value128(p: P.PCG) -> Nat:
84  match p:
85    case P.P{hi, lo}:
86      Nat.add(SW.value(lo), C.shift(64n, SW.value(hi)))

Uses (5)

Used by (2)