On Mon, Feb 24, 2025 at 03:58:49PM +0800, Jeremy Kerr wrote: > More so than __builtin_parity() ? > > I'm all for reducing the duplication, but the compiler may well have a > better parity approach than the xor-folding implementation here. Looks > like we can get this to two instructions on powerpc64, for example. Hi Jeremy, Thank for your input. We will do that in V2. Best regards, Yu-Chun Lin