simpler log2