Function safe_arch::sub_i8_m256i
source ยท pub fn sub_i8_m256i(a: m256i, b: m256i) -> m256i
Available with target feature
avx2
only.Expand description
Lanewise a - b
with lanes as i8
.
let a = m256i::from([5_i8; 32]);
let b = m256i::from([10_i8; 32]);
let c: [i8; 32] = sub_i8_m256i(a, b).into();
assert_eq!(c, [-5_i8; 32]);
- Intrinsic:
_mm256_sub_epi8
- Assembly:
vpsubb ymm, ymm, ymm