pub fn clz32(x: i32) -> u32
The Math.clz32() function returns the number of leading zero bits in the 32-bit binary representation of a number.
Math.clz32()
MDN documentation