def t64.update.go
bend-osdev-crc@0.1.0.0 · table.bend:133
import bend-osdev-crc@0.1.0.0/table.bend as Table
import Base
import bend-osdev-word64@0.1.0.0/word64.bend as W
import bend-osdev-crc@0.1.0.0/crc.bend as C
133def t64.update.go(reflected: Bool, poly: W.W64, c: W.W64, xs: List<&2, U32>) -> W.W64:
134 match reflected:
135 case True{}:
136 t64.snd(t64.r.raw(xs, (t64.fill.r(256n, Array.new(W.W64, 8n, W.W64.zero()), C.reflect64(poly), 0), c)))
137 case False{}:
138 t64.snd(t64.n.raw(xs, (t64.fill.n(256n, Array.new(W.W64, 8n, W.W64.zero()), poly, 0), c)))