Function abs_i8_m256i
pub fn abs_i8_m256i(a: m256i) -> m256i
Available on crate feature
dep_safe_arch
only.Expand description
Absolute value of i8
lanes.
let a = m256i::from([-7_i8; 32]);
let b: [i8; 32] = abs_i8_m256i(a).into();
assert_eq!(b, [7_i8; 32]);
- Intrinsic:
_mm256_abs_epi8
- Assembly:
vpabsb ymm, ymm