node-lib

@wtasnorg/node-lib


@wtasnorg/node-lib / popcount32

Function: popcount32()

popcount32(value): number

Defined in: bits.ts:52

Count set bits in an unsigned 32-bit representation of a number.

Parameters

value

number

Number interpreted as uint32.

Returns

number

Number of set bits (0-32).