/*
* Needed since we store all the parity at the end of the word, not at the expected
- * power-of-two bit positions.
+ * power-of-two bit positions. This is the inverse of the mapping
+ * (0..15) -> (0, 8, 4, 2, 1, the rest in ascending order)
*/
unsigned char permutation_table[CODE_BITS] = {
0, 4, 3, 5, 2, 6, 7, 8, 1, 9, 10, 11, 12, 13, 14, 15