JSREF

JavaScript Math.clz32()

The Math.clz32() method returns the number of leading zeros in a 32-bit binary number.