Re: [PATCH V3 01/29] bitops: add parity functions

From: George Spelvin
Date: Tue Apr 19 2016 - 14:45:11 EST


> Add generic odd parity functions, adapted from
> "https://graphics.stanford.edu/~seander/bithacks.html#ParityParallel";

Given a PARITY_MAGIC of 0x6996, this is even parity, not odd.

(Which it should be; an XOR of all bits is the "natural" form.)