File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ that scatter/gathers memory.
267
267
268
268
.. code-block :: c++
269
269
270
- int foo(int * A, int * B, int n) {
270
+ void foo(int * A, int * B, int n) {
271
271
for (intptr_t i = 0; i < n; ++i)
272
272
A[i] += B[i * 4];
273
273
}
@@ -284,7 +284,7 @@ vectorization is profitable.
284
284
285
285
.. code-block :: c++
286
286
287
- int foo(int *A, char *B, int n) {
287
+ void foo(int *A, char *B, int n) {
288
288
for (int i = 0; i < n; ++i)
289
289
A[i] += 4 * B[i];
290
290
}
@@ -303,7 +303,7 @@ ignored (as other compilers do) are still being left un-vectorized.
303
303
304
304
struct { int A[100], K, B[100]; } Foo;
305
305
306
- int foo() {
306
+ void foo() {
307
307
for (int i = 0; i < 100; ++i)
308
308
Foo.A[i] = Foo.B[i] + 100;
309
309
}
You can’t perform that action at this time.
0 commit comments