Re: [PATCH 02/17] bitops: Add generic parity calculation for u64

From: Andrew Cooper
Date: Tue Feb 25 2025 - 16:43:53 EST


> Incidentally, in all of this, didn't anyone notice __builtin_parity()?

Yes.  It it has done sane for a decade on x86, yet does things such as
emitting a library call on other architectures.

https://godbolt.org/z/6qG3noebq

~Andrew