Files
compiler-explorer/examples/d/Max_array.d

6 lines
195 B
D

// Hint: Try to compile with -O3 -release -boundscheck=off -mcpu=native
void maxArray(double[] x, double[] y) {
for (int i = 0; i < 65536; i++) {
if (y[i] > x[i]) x[i] = y[i];
}
}