Files
xserver/dix
Alan Coopersmith 6b857b7899 dix: Use __builtin_popcountl if available to replace Ones()
If the compiler knows of a better algorithm for counting the number of
bits set in a word for the target CPU, let it use that, instead of the
classic algorithm optimized for PDP-6.

Based on xorg/lib/libxext@490a25e6f8a4d2482af4364c700b68ad11a4d10b

v2: make old version static inline, stop exporting after !1695

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1674>
(cherry picked from commit 45c485bfdf)
2026-01-25 10:39:57 -08:00
..
2020-07-05 13:07:33 -07:00
2015-07-08 16:41:29 -04:00
2003-11-14 16:49:22 +00:00
2003-11-14 15:54:54 +00:00
2014-11-12 10:25:00 +10:00
2026-01-25 10:39:57 -08:00
2026-01-25 10:39:57 -08:00
2026-01-25 10:39:57 -08:00
2019-10-30 16:17:04 +00:00
2015-04-21 16:57:07 -07:00
2026-01-19 12:32:20 -08:00
2013-07-23 23:56:58 +01:00
2020-07-05 13:07:33 -07:00
2014-11-12 10:25:00 +10:00