Crc.r32.raw: def of bend-osdev-crc@0.1.0.0 Import: import bend-osdev-crc@0.1.0.0/crc.bend as Crc Lines 64-70 of bend-osdev-crc@0.1.0.0/crc.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-crc@0.1.0.0/crc.bend&start_line=64&end_line=70 import Base # the register after the bytes xs, from register c (poly reflected) def r32.raw(xs: List<&2, U32>, +poly: U32, c: U32) -> U32: match xs: case Nil{}: c case Con{h, t}: r32.raw(t, poly, r32.bits(8n, poly, U32.xor(c, U32.and(h, 255)))) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List 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.xor https://jend.leeeet.dev/definition.txt?path=bend-osdev-crc@0.1.0.0/crc.bend&name=r32.bits