[−][src]Function safe_arch::abs_i16_m256i
#[must_use]pub fn abs_i16_m256i(a: m256i) -> m256i
This is supported with target feature
avx2
only.Absolute value of i16
lanes.
let a = m256i::from([-7_i16; 16]); let b: [i16; 16] = abs_i16_m256i(a).into(); assert_eq!(b, [7_i16; 16]);
- Intrinsic:
_mm256_abs_epi16
- Assembly:
vpabsw ymm, ymm