def r64.bits

bend-osdev-crc@0.1.0.0 · crc.bend:131

import bend-osdev-crc@0.1.0.0/crc.bend as Crc
import Base
import bend-osdev-word64@0.1.0.0/word64.bend as W

131def r64.bits(n: Nat, +poly: W.W64, +c: W.W64) -> W.W64:
132  match n:
133    case 0n:
134      c
135    case 1n+p:
136      r64.bits(p, poly, r64.pick(U32.is_eq(U32.and(W.W64.lo(c), 1), 1), poly, c))

Uses (6)

Used by (3)