Loop-invariant code motion: Difference between revisions

Content deleted Content added
Fix further optimization example
j does not need to be declared as int because it is assumed to exist
Line 23:
<code><pre>
int calcval = (4+array[k])*pi+5;
int j = j + integer_part((maximum - 1 - j) / calcval) * calcval;
</pre></code>