countOneBits
@ExperimentalStdlibApi @ExperimentalUnsignedTypes fun UInt.countOneBits(): Int
Counts the number of set bits in the binary representation of this UInt number.
@ExperimentalStdlibApi @ExperimentalUnsignedTypes fun ULong.countOneBits(): Int
Counts the number of set bits in the binary representation of this ULong number.
@ExperimentalStdlibApi @ExperimentalUnsignedTypes fun UByte.countOneBits(): Int
Counts the number of set bits in the binary representation of this UByte number.
@ExperimentalStdlibApi @ExperimentalUnsignedTypes fun UShort.countOneBits(): Int
Counts the number of set bits in the binary representation of this UShort number.
Counts the number of set bits in the binary representation of this Int number.
Counts the number of set bits in the binary representation of this Long number.
Counts the number of set bits in the binary representation of this Byte number.
Counts the number of set bits in the binary representation of this Short number.