mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-11-30 20:14:32 -06:00
11 lines
295 B
Rust
11 lines
295 B
Rust
#[allow(unstable)]
|
|
pub fn max_array(x: &mut[f64; 65536], y: &[f64; 65536]) {
|
|
unsafe {
|
|
std::intrinsics::assume(x.as_ptr() as usize % 64 == 0);
|
|
std::intrinsics::assume(y.as_ptr() as usize % 64 == 0);
|
|
}
|
|
for i in (0..65536) {
|
|
x[i] = if y[i] > x[i] { y[i] } else { x[i] };
|
|
}
|
|
}
|