/* Count and return the number of bits set to '1' in the given hamming code. */
static uint32_t count_bits_in_code256(uint8_t *code)
/* Count and return the number of bits set to '1' in the given hamming code. */
static uint32_t count_bits_in_code256(uint8_t *code)
{
	return count_bits_in_byte(code[0]) + count_bits_in_byte(code[1]) +
			count_bits_in_byte(code[2]);
}