Re: [patch V4 01/31] bitops: add parity functions

2016-05-11 Thread Martin Kepplinger
Am 2016-05-11 um 10:47 schrieb zengzhao...@163.com: > From: Zhaoxiu Zeng > > Add generic parity functions, adapted from > "https://graphics.stanford.edu/~seander/bithacks.html#ParityParallel;. > > The function parityN returns whether an odd or even number of bits are on

Re: [patch V4 01/31] bitops: add parity functions

2016-05-11 Thread Martin Kepplinger
Am 2016-05-11 um 10:47 schrieb zengzhao...@163.com: > From: Zhaoxiu Zeng > > Add generic parity functions, adapted from > "https://graphics.stanford.edu/~seander/bithacks.html#ParityParallel;. > > The function parityN returns whether an odd or even number of bits are on > in a N-bit word. > >

[patch V4 01/31] bitops: add parity functions

2016-05-11 Thread zengzhaoxiu
From: Zhaoxiu Zeng Add generic parity functions, adapted from "https://graphics.stanford.edu/~seander/bithacks.html#ParityParallel;. The function parityN returns whether an odd or even number of bits are on in a N-bit word. Signed-off-by: Zhaoxiu Zeng

[patch V4 01/31] bitops: add parity functions

2016-05-11 Thread zengzhaoxiu
From: Zhaoxiu Zeng Add generic parity functions, adapted from "https://graphics.stanford.edu/~seander/bithacks.html#ParityParallel;. The function parityN returns whether an odd or even number of bits are on in a N-bit word. Signed-off-by: Zhaoxiu Zeng --- include/asm-generic/bitops.h