(no commit message)
authorlkcl <lkcl@web>
Sat, 15 Apr 2023 17:33:40 +0000 (18:33 +0100)
committerIkiWiki <ikiwiki.info>
Sat, 15 Apr 2023 17:33:40 +0000 (18:33 +0100)
openpower/sv/rfc/ls009.mdwn

index 886500e5115bb9a43d74d65251c4a1f95f67d9de..fd44d19b19bd51c26dc45072a1ad992117141ed0 100644 (file)
@@ -2268,22 +2268,15 @@ Selecting which REMAP Schedule to use is shown by the pseudocode below.
 Each SVSHAPE 0-3 goes through this selection process.
 
 ```
-    if SVSHAPEn.mode == 0b00:
-        iterate_fn = iterate_indices
-    elif SVSHAPEn.mode == 0b10:
-        iterate_fn = iterate_preduce_indices
-    elif SVSHAPEn.mode in [0b01, 0b11]:
-        # further sub-selection
-        if SVSHAPEn.ydimsz == 1:
-            iterate_fn = iterate_butterfly_indices
-        elif SVSHAPEn.ydimsz == 2:
-            iterate_fn = iterate_dct_inner_butterfly_indices
-        elif SVSHAPEn.ydimsz == 3:
-            iterate_fn = iterate_dct_outer_butterfly_indices
-        elif SVSHAPEn.ydimsz in [5, 13]:
-            iterate_fn = iterate_dct_inner_costable_indices
-        elif SVSHAPEn.ydimsz in [6, 14, 15]:
-            iterate_fn = iterate_dct_inner_halfswap_loadstore
+  if SVSHAPEn.mode == 0b00:             iterate_fn = iterate_indices
+  if SVSHAPEn.mode == 0b10:             iterate_fn = iterate_preduce_indices
+  if SVSHAPEn.mode in [0b01, 0b11]:
+    # further sub-selection
+    if SVSHAPEn.ydimsz == 1:            iterate_fn = iterate_butterfly_indices
+    if SVSHAPEn.ydimsz == 2:            iterate_fn = iterate_dct_inner_butterfly_indices
+    if SVSHAPEn.ydimsz == 3:            iterate_fn = iterate_dct_outer_butterfly_indices
+    if SVSHAPEn.ydimsz in [5, 13]:      iterate_fn = iterate_dct_inner_costable_indices
+    if SVSHAPEn.ydimsz in [6, 14, 15]:  iterate_fn = iterate_dct_inner_halfswap_loadstore
 ```