Table.t32.n.raw: def of bend-osdev-crc@0.1.0.0 Import: import bend-osdev-crc@0.1.0.0/table.bend as Table Lines 47-54 of bend-osdev-crc@0.1.0.0/table.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-crc@0.1.0.0/table.bend&start_line=47&end_line=54 import Base # most significant bit first: c = ((c << 8) ^ T[((c >> (w - 8)) ^ b) & 255]) & mask def t32.n.raw(xs: List<&2, U32>, +shift: Nat, +mask: U32, r: Array & U32) -> Array & U32: match xs: case Nil{}: r case Con{h, t}: (tab, +c) = r t32.n.raw(t, shift, mask, t32.n.fin(Array.get(U32, tab, U32.and(U32.xor(U32.shrn(c, shift), h), 255)), c, mask)) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array.get https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.shrn https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.xor https://jend.leeeet.dev/definition.txt?path=bend-osdev-crc@0.1.0.0/table.bend&name=t32.n.fin