From 《The C Programming Language》 Page 50

Add function: int bitcount(unsigned x)
    count 1 bits in x