>>130
y = log((double)x) / log(2.0);