countLeadingZeroBits

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

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
(Common source) (JVM source) (JS source) (Native source)

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
(source)

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
(source)

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

Common
JVM
JS
Native
1.5
fun UInt.countLeadingZeroBits(): Int
(source)

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

Common
JVM
JS
Native
1.5
fun ULong.countLeadingZeroBits(): Int
(source)

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

Common
JVM
JS
Native
1.5
fun UByte.countLeadingZeroBits(): Int
(source)

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

Common
JVM
JS
Native
1.5
fun UShort.countLeadingZeroBits(): Int
(source)

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