Understanding log iteration of for-loop
<p>Why does the following <code>for</code>-loop compute <code>floor(log_2(m))</code>, rather than <code>ceil(log_2(m))</code> (which is what I would have expected)?</p>

<pre><code>for (int m = &lt;some number&gt;; m &gt; 1; m /= 2) //&lt;some number&gt; is integer &gt;= 0
    cout &lt;&lt; “Here\n”;
</code></pre>
