Skip to content
Snippets Groups Projects
Commit b968d020 authored by Matt Wala's avatar Matt Wala
Browse files

Fix another tutorial doctest changed by non-static loop bounds.

parent 37be4710
No related branches found
No related tags found
No related merge requests found
......@@ -789,17 +789,18 @@ enabling some cost savings:
a[4 * i_outer + 3] = 0.0f;
}
/* final slab for 'i_outer' */
for (int i_outer = -1 + n + -1 * (3 * n / 4); i_outer <= -1 + ((3 + n) / 4); ++i_outer)
if (-1 + n >= 0)
{
a[4 * i_outer] = 0.0f;
if (-2 + -4 * i_outer + n >= 0)
a[4 * i_outer + 1] = 0.0f;
if (-3 + -4 * i_outer + n >= 0)
a[4 * i_outer + 2] = 0.0f;
if (4 + 4 * i_outer + -1 * n == 0)
a[4 * i_outer + 3] = 0.0f;
}
int const i_outer = -1 + n + -1 * (3 * n / 4);
<BLANKLINE>
if (-1 + n >= 0)
{
a[4 * i_outer] = 0.0f;
if (-2 + -4 * i_outer + n >= 0)
a[4 * i_outer + 1] = 0.0f;
if (-3 + -4 * i_outer + n >= 0)
a[4 * i_outer + 2] = 0.0f;
if (4 + 4 * i_outer + -1 * n == 0)
a[4 * i_outer + 3] = 0.0f;
}
...
.. }}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment