blob: 4d074210cc700cd5b881defd98e1399b556bd343 [file] [log] [blame] [raw]
#[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] };
}
}