pub fn average_u16_m256i(a: m256i, b: m256i) -> m256i
Available with target feature avx2 only.
Expand description

Average u16 lanes.

let a = m256i::from([100_u16; 16]);
let b = m256i::from([120_u16; 16]);
let c: [u16; 16] = average_u16_m256i(a, b).into();
assert_eq!(c, [110_u16; 16]);