Here is the code:
unsigned int v; // word value to compute the parity of
v ^= v >> 16;
v ^= v >> 8;
v ^= v >> 4;
v &= 0xf;
return (0x6996 >> v) & 1;
It computes the parity of given word, v
. What is the meaning of 0x6996?
The number 0x6996 in binary is 110100110010110
.