def lc.bits8
import bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers.bend as LegacyCiphersimport Base
import bend-osdev-word64@0.1.0.0/word64.bend as W
142# the low 8 bits of a word, as bits, and the byte with these bits
143def lc.bits8(b: U32) -> Word(8n):
144 match b:
145 case U32{w}:
146 W.W64.bits.lo(8n, 24n, w)