title: What's the quickest way to compute log2 of an integer in C#?
body: <p>How can I most efficiently count the number of bits required by an integer (log base 2) in C#?  For example:</p>
  
  <pre><code>int bits = 1 + log2(100);
  
  =&gt; bits == 7
  </code></pre>