JSREF
JavaScript Math.log2()
The Mat.log2() method returns the base-2 logarithm of a number.