Name

hweight32 — returns the hamming weight of a N-bit word

Synopsis

hweight32 ( x);

Arguments

x

the word to weigh

Description

The Hamming Weight of a number is the total number of bits set in it.