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

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