[][src]Function safe_arch::max_u16_m256i

#[must_use]pub fn max_u16_m256i(a: m256i, b: m256i) -> m256i
This is supported with target feature avx2 only.

Lanewise max(a, b) with lanes as u16.

let a =
  m256i::from([0_u16, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 127]);
let b = m256i::from([
  0_u16, 65535, 2, 13, 4, 15, 6, 17, 8, 19, 20, 21, 22, 23, 24, 25,
]);
let c: [u16; 16] = max_u16_m256i(a, b).into();
assert_eq!(
  c,
  [0, 65535, 2, 13, 4, 15, 6, 17, 8, 19, 20, 21, 22, 23, 24, 127]
);