def n32.pick

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

import bend-osdev-crc@0.1.0.0/crc.bend as Crc
import Base

74def n32.pick(top: Bool, +poly: U32, +mask: U32, c: U32) -> U32:
75  match top:
76    case True{}:
77      U32.and(U32.xor(U32.shl(c), poly), mask)
78    case False{}:
79      U32.and(U32.shl(c), mask)

Uses (5)

Used by (1)