Browse Source

Fix max array opt version

dev/git-series/gccdum
Matt Godbolt 5 years ago
parent
commit
26d7bfa6fa
  1. 2
      examples/c++/max_array_opt.cpp

2
examples/c++/max_array_opt.cpp

@ -1,5 +1,5 @@
// Compile with -O3 -march=native to see autovectorization
typedef double * __attribute__((aligned(64))) aligned_double;
typedef double *__attribute__((aligned(64))) aligned_double;
void maxArray(aligned_double __restrict x, aligned_double __restrict y) {
for (int i = 0; i < 65536; i++) {

Loading…
Cancel
Save