def word_count_8

bend-collections@1.0.0.0 · src/containers/bitset.bend:247

import bend-collections@1.0.0.0/src/containers/bitset.bend as Bitset
import Base

247def word_count_8(k: Nat, +w: U32, +acc: Nat) -> Nat:
248  match k:
249    case 0n:
250      acc
251    case 1n+p:
252      word_count_8(p, U32.shr(U32.shr(U32.shr(U32.shr(U32.shr(U32.shr(U32.shr(U32.shr(w)))))))), Nat.add(acc, bv8(w)))

Uses (5)

Used by (1)