def r32.pick
import bend-osdev-crc@0.1.0.0/crc.bend as Crcimport Base
50def r32.pick(odd: Bool, +poly: U32, c: U32) -> U32:
51 match odd:
52 case True{}:
53 U32.xor(U32.shr(c), poly)
54 case False{}:
55 U32.shr(c)
import bend-osdev-crc@0.1.0.0/crc.bend as Crcimport Base
50def r32.pick(odd: Bool, +poly: U32, c: U32) -> U32:
51 match odd:
52 case True{}:
53 U32.xor(U32.shr(c), poly)
54 case False{}:
55 U32.shr(c)