_Bash_'s blog

By _Bash_, history, 5 years ago, In English

I wanted to calculate log2 of a 64 bit integer suppose 10^18 i.e. log2(10^18). I came across an answer on stackoverflow(Link) that does it, but it is difficult to understand. Can someone explain the logic behind the answer ?? Thanks in advance..Thankyou.

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it