[c++] How to write log base(2) in c/c++