Lines Matching full:lsb
40 # Format a polynomial as hex. Bit-reflect it if the CRC is lsb-first.
42 if variant.lsb:
49 mults = list(mults if variant.lsb else reversed(mults))
50 terms = ['HI64_TERMS', 'LO64_TERMS'] if variant.lsb else ['LO64_TERMS', 'HI64_TERMS']
71 s = f'{"least" if variant.lsb else "most"}-significant-bit-first CRC-{variant.bits}'
79 if bit_order not in ['lsb', 'msb']:
81 self.lsb = bit_order == 'lsb'
83 if self.lsb:
98 poly = (bitreflect(i % 256, 8) if v.lsb else i % 256) << (v.bits + 8*(i//256))
112 (G, n, lsb) = (v.G, v.bits, v.lsb)
114 pow_of_x = 3 * bits_per_long - (1 if lsb else 0)
117 pow_of_x = 2 * bits_per_long - (1 if lsb else 0)
127 if lsb:
165 (G, n, lsb) = (v.G, v.bits, v.lsb)
169 if not lsb:
178 if not lsb:
192 if lsb:
195 # through 126, which in the lsb-first case represent the
197 # Thus in the lsb-first case, each such instruction
230 if not lsb:
237 if lsb and n == 64:
242 pow_of_x = 64 - n - (1 if lsb else 0)