Added pc.math.log2, because Math.log2 is not supported on IE.