[][src]Function safe_arch::add_saturating_u16_m256i

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

Lanewise saturating a + b with lanes as u16.

let a = m256i::from([32700_u16; 16]);
let b = m256i::from([32000_u16; 16]);
let c: [u16; 16] = add_saturating_u16_m256i(a, b).into();
assert_eq!(c, [64700_u16; 16]);