countLeadingZeroBits

Common
JVM
JS
Native
1.4
@ExperimentalUnsignedTypes fun UInt.countLeadingZeroBits(): Int

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

Common
JVM
JS
Native
1.4
@ExperimentalUnsignedTypes fun ULong.countLeadingZeroBits(): Int

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

Common
JVM
JS
Native
1.4
@ExperimentalUnsignedTypes fun UByte.countLeadingZeroBits(): Int

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

Common
JVM
JS
Native
1.4
@ExperimentalUnsignedTypes fun UShort.countLeadingZeroBits(): Int

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

Common
JVM
JS
Native
1.4
fun Int.countLeadingZeroBits(): Int

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

Common
JVM
JS
Native
1.4
fun Long.countLeadingZeroBits(): Int

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

Common
JVM
JS
Native
1.4
fun Byte.countLeadingZeroBits(): Int

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

Common
JVM
JS
Native
1.4
fun Short.countLeadingZeroBits(): Int

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