title: bitwise most significant set bit
body: <p>I want to find the most significant bit that is set to <code>1</code>. I have tried every possible way from <code>&amp;</code> to ORing all of the bits from <code>1</code> to <code>31</code> and it doesn't work.</p>
  
  <p>Like if <code>1000000</code> I would like to have <code>7</code>.</p>