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