Re: not understanding the array declaration along with macro
hmm, how to explain...
see,
for first element B6(0)
B6(0)=B4(0), B4(1), B4(1), B4(2)=B2(0), B2(1), B2(1), B2(2),........
=0, 1, 1, 2, 1, 2, 2, 3,.........
similarly for B6(1), B6(1) and B6(2)
so all of it comes down to
static const unsigned char BitsSetTable256[256] = { 0, 1, 1, 2, 1, 2, 2, 3,........};
which is a way to initialize an array.
|