def r32.pick

bend-osdev-crc@0.1.0.0 · crc.bend:50

import bend-osdev-crc@0.1.0.0/crc.bend as Crc
import 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)

Uses (4)

Used by (1)