[#BloombergLP-bdlb-BitUtil-numBitsSet-0e] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/BitUtil.adoc[BitUtil]::numBitsSet :relfileprefix: ../../../ :mrdocs: Same as the `unsigned int` overload. == Synopsis Declared in `<bdlb_bitutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int numBitsSet(unsigned long value); ---- == Return Value number of 1 bits in `value` == Parameters [cols="1,4"] |=== | Name| Description | *value* | value whose set bits are counted |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#