Counts the number of bits set in a word.
int CountBits(uint32 mask);
CountBits examines the longword passed in as a parameter and returns the number of bits that are turned on in the word, using an algorithm derived from a note in MIT's HAKMEM.
The number of bits that were turned on in the supplied value.
Convenience call implemented in clib.lib V21.
FindMSB
(), FindLSB()