From aa184b9ae57a3df7f593a64d0dd0b4a2da9faded Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Wed, 19 Oct 2016 19:04:36 -0500
Subject: [PATCH] Fix codegen differences from switch to C ASTs

---
 doc/tutorial.rst | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/doc/tutorial.rst b/doc/tutorial.rst
index 0fcaf9728..dd6584183 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)
-- 
GitLab