botan v1.13.4 (2023-03-01T00:35:38Z)
Dub
Repo
hammingWeight
botan
utils
bit_ops
Compute Hamming weights
size_t
hammingWeight
(
T
)
(
T
n
)
if
(
!
isPointer
!
T
)
Parameters
n
T
an integer value
Return Value
Type:
size_t
number of bits in n set to 1
Meta
Source
See Implementation
botan
utils
bit_ops
functions
ctz
hammingWeight
highBit
isPowerOf2
lowBit
significantBytes
Compute Hamming weights