Function log2

Return log2(x).