[][src]Function safe_arch::mul_i16_keep_high_m256i

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

Multiply the i16 lanes and keep the high half of each 32-bit output.

let a =
  m256i::from([5_i16, 6, 2, 5, 4, 3, 1, 0, -12, 13, 56, 21, 8, 7, 6, 5]);
let b = m256i::from([
  12000_i16, 13000, -2, -8, 0, 1, 2, 3, 8, 7, 6, 5, 234, 654, 123, 978,
]);
let c: [i16; 16] = mul_i16_keep_high_m256i(a, b).into();
assert_eq!(c, [0_i16, 1, -1, -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0]);