countOneBits

inline fun Byte.countOneBits(): Int(source)

Counts the number of set bits in the binary representation of this Byte number.

Since Kotlin

1.4

inline fun Short.countOneBits(): Int(source)

Counts the number of set bits in the binary representation of this Short number.

Since Kotlin

1.4

inline fun UInt.countOneBits(): Int(source)

Counts the number of set bits in the binary representation of this UInt number.

Since Kotlin

1.5

inline fun ULong.countOneBits(): Int(source)

Counts the number of set bits in the binary representation of this ULong number.

Since Kotlin

1.5

inline fun UByte.countOneBits(): Int(source)

Counts the number of set bits in the binary representation of this UByte number.

Since Kotlin

1.5

inline fun UShort.countOneBits(): Int(source)

Counts the number of set bits in the binary representation of this UShort number.

Since Kotlin

1.5

expect fun Int.countOneBits(): Int(source)

Counts the number of set bits in the binary representation of this Int number.

Since Kotlin

1.4

expect fun Long.countOneBits(): Int(source)

Counts the number of set bits in the binary representation of this Long number.

Since Kotlin

1.4
actual fun Int.countOneBits(): Int(source)

Counts the number of set bits in the binary representation of this Int number.

Since Kotlin

1.4

actual fun Long.countOneBits(): Int(source)

Counts the number of set bits in the binary representation of this Long number.

Since Kotlin

1.4
actual inline fun Int.countOneBits(): Int(source)

Counts the number of set bits in the binary representation of this Int number.

Since Kotlin

1.4

actual inline fun Long.countOneBits(): Int(source)

Counts the number of set bits in the binary representation of this Long number.

Since Kotlin

1.4
actual external fun Int.countOneBits(): Int(source)

Counts the number of set bits in the binary representation of this Int number.

Since Kotlin

1.4

actual external fun Long.countOneBits(): Int(source)

Counts the number of set bits in the binary representation of this Long number.

Since Kotlin

1.4
actual fun Int.countOneBits(): Int(source)

Counts the number of set bits in the binary representation of this Int number.

Since Kotlin

1.8

actual inline fun Long.countOneBits(): Int(source)

Counts the number of set bits in the binary representation of this Long number.

Since Kotlin

1.8
actual fun Int.countOneBits(): Int(source)

Counts the number of set bits in the binary representation of this Int number.

Since Kotlin

1.8

actual inline fun Long.countOneBits(): Int(source)

Counts the number of set bits in the binary representation of this Long number.

Since Kotlin

1.8