Hamming weight (source code)

= Hamming weight
{c}
{title2=$\operatorname{wt}$}
{wiki}

= Bit count
{synonym}

= Population count
{synonym}

= Number of 1-bits
{synonym}

= Popcount
{synonym}

The Hamming weight $\operatorname{wt}(x)$ of a word is the number of its nonzero coordinates.