From cee238a7744c1a111804a96062a133813d8d42b2 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 2 Mar 2006 13:29:01 +0000 Subject: [PATCH] Update the permutation table for hamming32. --- hamming32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hamming32.c b/hamming32.c index a277253..cbfb447 100644 --- a/hamming32.c +++ b/hamming32.c @@ -11,10 +11,10 @@ unsigned char hamming_parity_lookup[256]; /* * Needed since we store all the parity at the end of the word, not at the expected * power-of-two bit positions. This is the inverse of the mapping - * (0..15) -> (0, 8, 4, 2, 1, the rest in ascending order) + * (0..31) -> (0, 16, 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 + 0, 5, 4, 6, 3, 7, 8, 9, 2, 10, 11, 12, 13, 14, 15, 16, 1, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 }; /* FIXME: check if the lookup table actually helps us any here */ -- 2.39.2