fn max_bit(word: Word) -> usize