Crc.Crc32Spec.update.go: def of bend-osdev-crc@0.1.0.0 Import: import bend-osdev-crc@0.1.0.0/crc.bend as Crc Lines 178-185 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=178&end_line=185 import Base # the register after the bytes xs, from register c, without the final XOR: # what a caller that computes a CRC in pieces passes from one piece to the next def Crc32Spec.update.go(reflected: Bool, +width: Nat, poly: U32, c: U32, xs: List<&2, U32>) -> U32: match reflected: case True{}: r32.raw(xs, reflect32(poly, width), c) case False{}: Crc32Spec.update.msb(Nat.is_lt(width, 8n), width, poly, c, xs) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool 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=Nat.is_lt https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-osdev-crc@0.1.0.0/crc.bend&name=Crc32Spec.update.msb https://jend.leeeet.dev/definition.txt?path=bend-osdev-crc@0.1.0.0/crc.bend&name=r32.raw https://jend.leeeet.dev/definition.txt?path=bend-osdev-crc@0.1.0.0/crc.bend&name=reflect32