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

Andrew Cooper andrew.cooper3 at citrix.com
Tue Feb 25 21:43:27 UTC 2025


> 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


More information about the dri-devel mailing list