def n64.pick

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

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

145def n64.pick(top: Bool, +poly: W.W64, c: W.W64) -> W.W64:
146  match top:
147    case True{}:
148      W.W64.xor(W.W64.shl(c, 1n), poly)
149    case False{}:
150      W.W64.shl(c, 1n)

Uses (4)

Used by (1)