Where do I find an algorithm newsgroup?
I am interested in getting some help with the "even parity check" algorithm.
I used google to find this back in 1999 from this newsgroup:
unsigned parity(unsigned arg)
{
unsigned a = arg;
a ^= a >> 16;
a ^= a >> 8;
a ^= a >> 4;
a ^= a >> 2;
a ^= a >> 1;
return a & 1;
}
Who have invented this algorithm?
Is it possible to find an explanation somewhere because I see that it works
but would never myself have come up with it and would very much like to
know the theory behind it.