Rivoreo Source Code Repositories
src.rivoreo.one
/
compiler-explorer
/
2c517d6e911393482c81a2a004b4750ad0250623
/
.
/
examples
/
d
/
Max_array.d
blob: 21fec9ea7162d2c8db0967bc29dc6940a81886fc [
file
] [
log
] [
blame
] [
raw
]
// 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
];
}
}