Files
xserver/os
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
..
2026-01-25 10:39:57 -08:00
2026-01-25 10:39:53 -08:00
2026-01-25 10:39:57 -08:00
2026-01-25 10:39:53 -08:00
2026-01-19 12:47:57 -08:00
2016-07-21 15:04:47 -04:00
2012-03-21 13:54:42 -07:00
2012-03-21 13:54:42 -07:00
2026-01-25 10:39:57 -08:00
2026-01-25 10:39:53 -08:00
2026-01-19 12:32:20 -08:00
2026-01-19 12:32:20 -08:00
2013-10-31 16:58:12 -07:00