Rivoreo Source Code Repositories
src.rivoreo.one
/
compiler-explorer
/
e00872eb6512301e4ffa3a3fba04877d14ddd18f
/
.
/
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
];
}
}