3 ms·And if you want an integer result, log2 can be quickly computed using the number of leading zeros.by thayne 2y agoAnd if you want an integer result, log2 can be quickly computed using the number of leading zeros.