Calculates the floor of the log, base 2, of 'x'.