def n64.bits

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

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

152def n64.bits(n: Nat, +poly: W.W64, +c: W.W64) -> W.W64:
153  match n:
154    case 0n:
155      c
156    case 1n+p:
157      n64.bits(p, poly, n64.pick(Bool.not(U32.is_eq(U32.and(W.W64.hi(c), 2147483648), 0)), poly, c))

Uses (7)

Used by (3)