def Clz.value

bend-collections-laws-math@1.0.0.0 · spec/math/w64.bend:120

import bend-collections-laws-math@1.0.0.0/spec/math/w64.bend as W64
import Base
import bend-collections-laws-math@1.0.0.0/src/math/u64.bend as W
import bend-collections-laws-math@1.0.0.0/src/math/w64.bend as X
import bend-collections-laws-math@1.0.0.0/src/math/natural.bend as M

120# 64 for zero
121def Clz.value(+a: W.U64) -> Type:
122  {X.clz(a) == Nat.sub(64n, M.bit_length(value(a))) : Nat}

Uses (6)

Used by (1)