hammingWeight

Compute Hamming weights

size_t
hammingWeight
(
T
)
(
T n
)

Parameters

n T

an integer value

Return Value

Type: size_t

number of bits in n set to 1

Meta