Logarithm function, base-2, single-cycle