.TH "hweight32" 9 "hweight32" "25 May 1998" "Kernel Hacker's Manual" LINUX .SH NAME hweight32 \- returns the hamming weight of a N-bit word .SH SYNOPSIS .B "" hweight32 .BI "(" x ");" .SH ARGUMENTS .IP "x" 12 the word to weigh .SH "DESCRIPTION" The Hamming Weight of a number is the total number of bits set in it.