mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 14:04:04 -05:00
10 lines
328 B
Plaintext
10 lines
328 B
Plaintext
// Compile with --opt=force-aligned-memory to improve vectorization
|
|
// by assuming the input arrays are aligned. SSE, AVX and AVX-512
|
|
// targets will assume 16, 32 or 64 byte alignment respectively.
|
|
|
|
void maxArray(uniform double x[], uniform double y[]) {
|
|
foreach (i = 0 ... 65536) {
|
|
x[i] = max(x[i], y[i]);
|
|
}
|
|
}
|