def r64.pick

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

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

124def r64.pick(odd: Bool, +poly: W.W64, c: W.W64) -> W.W64:
125  match odd:
126    case True{}:
127      W.W64.xor(W.W64.shr(c, 1n), poly)
128    case False{}:
129      W.W64.shr(c, 1n)

Uses (4)

Used by (1)