countLeadingZeroBits

Common
inline fun UInt.countLeadingZeroBits(): Int

Counts the number of consecutive most significant bits that are zero in the binary representation of this UInt number.

Since Kotlin

1.5
Common
inline fun ULong.countLeadingZeroBits(): Int

Counts the number of consecutive most significant bits that are zero in the binary representation of this ULong number.

Since Kotlin

1.5
Common
inline fun UByte.countLeadingZeroBits(): Int

Counts the number of consecutive most significant bits that are zero in the binary representation of this UByte number.

Since Kotlin

1.5
Common
inline fun UShort.countLeadingZeroBits(): Int

Counts the number of consecutive most significant bits that are zero in the binary representation of this UShort number.

Since Kotlin

1.5
Common
inline fun Byte.countLeadingZeroBits(): Int

Counts the number of consecutive most significant bits that are zero in the binary representation of this Byte number.

Since Kotlin

1.4
Common
inline fun Short.countLeadingZeroBits(): Int

Counts the number of consecutive most significant bits that are zero in the binary representation of this Short number.

Since Kotlin

1.4
Common
fun Int.countLeadingZeroBits(): Int

Counts the number of consecutive most significant bits that are zero in the binary representation of this Int number.

Since Kotlin

1.4
inline fun Int.countLeadingZeroBits(): Int

Counts the number of consecutive most significant bits that are zero in the binary representation of this Int number.

Since Kotlin

1.4
JS
inline fun Int.countLeadingZeroBits(): Int

Counts the number of consecutive most significant bits that are zero in the binary representation of this Int number.

Since Kotlin

1.4
Native
fun Int.countLeadingZeroBits(): Int

Counts the number of consecutive most significant bits that are zero in the binary representation of this Int number.

Since Kotlin

1.4
Common
fun Long.countLeadingZeroBits(): Int

Counts the number of consecutive most significant bits that are zero in the binary representation of this Long number.

Since Kotlin

1.4
inline fun Long.countLeadingZeroBits(): Int

Counts the number of consecutive most significant bits that are zero in the binary representation of this Long number.

Since Kotlin

1.4
JS
fun Long.countLeadingZeroBits(): Int

Counts the number of consecutive most significant bits that are zero in the binary representation of this Long number.

Since Kotlin

1.4
Native
fun Long.countLeadingZeroBits(): Int

Counts the number of consecutive most significant bits that are zero in the binary representation of this Long number.

Since Kotlin

1.4