def t32.r.raw

bend-osdev-crc@0.1.0.0 · table.bend:34

import bend-osdev-crc@0.1.0.0/table.bend as Table
import Base

34# reflected: c = (c >> 8) ^ T[(c ^ b) & 255]
35def t32.r.raw(xs: List<&2, U32>, r: Array<U32> & U32) -> Array<U32> & U32:
36  match xs:
37    case Nil{}:
38      r
39    case Con{h, t}:
40      (tab, +c) = r
41      t32.r.raw(t, t32.r.fin(Array.get(U32, tab, U32.and(U32.xor(c, h), 255)), c))

Uses (9)

Used by (1)