Try the revamped Kotlin docs design →
Try the revamped Kotlin docs design!
countOneBits
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.
Counts the number of set bits in the binary representation of this UInt number.
Counts the number of set bits in the binary representation of this ULong number.
Counts the number of set bits in the binary representation of this UByte number.
Counts the number of set bits in the binary representation of this UShort number.