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@490a25e6
Signed-off-by: Alan Coopersmith alan.coopersmith@oracle.com