diff --git a/doc/tutorial.rst b/doc/tutorial.rst index 0fcaf97283e2b6693d770ec79634ad565afddfaa..dd6584183390cb3f4616b19a9934915b23f7d29e 100644 --- a/doc/tutorial.rst +++ b/doc/tutorial.rst @@ -630,7 +630,7 @@ loop's tag to ``"unr"``: ... for (int i_outer = 0; i_outer <= int_floor_div_pos_b(-4 + n, 4); ++i_outer) { - a[4 * i_outer + 0] = 0.0f; + a[4 * i_outer] = 0.0f; a[4 * i_outer + 1] = 0.0f; a[4 * i_outer + 2] = 0.0f; a[4 * i_outer + 3] = 0.0f; @@ -750,7 +750,7 @@ assumption: ... for (int i_outer = 0; i_outer <= -1 + ((3 + n) / 4); ++i_outer) { - a[4 * i_outer + 0] = 0.0f; + 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) @@ -780,7 +780,7 @@ enabling some cost savings: /* bulk slab for 'i_outer' */ for (int i_outer = 0; i_outer <= -2 + ((3 + n) / 4); ++i_outer) { - a[4 * i_outer + 0] = 0.0f; + a[4 * i_outer] = 0.0f; a[4 * i_outer + 1] = 0.0f; a[4 * i_outer + 2] = 0.0f; a[4 * i_outer + 3] = 0.0f; @@ -789,7 +789,7 @@ enabling some cost savings: 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] = 0.0f; + 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)