[−][src]Function safe_arch::abs_i32_m256i
#[must_use]pub fn abs_i32_m256i(a: m256i) -> m256i
This is supported with target feature
avx2
only.Absolute value of i32
lanes.
let a = m256i::from([-7_i32; 8]); let b: [i32; 8] = abs_i32_m256i(a).into(); assert_eq!(b, [7_i32; 8]);
- Intrinsic:
_mm256_abs_epi32
- Assembly:
vpabsd ymm, ymm