/* Returns whether an odd or even number of bits are on in pkt.  */
static int bit_parity(u32 pkt)
/* Returns whether an odd or even number of bits are on in pkt.  */
static int bit_parity(u32 pkt)
{
	int x = pkt ^ (pkt >> 16);
	x ^= x >> 8;
	x ^= x >> 4;
	x ^= x >> 2;
	x ^= x >> 1;
	return x & 1;
}