[−][src]Function safe_arch::sub_i64_m256i
#[must_use]pub fn sub_i64_m256i(a: m256i, b: m256i) -> m256i
This is supported with target feature
avx2
only.Lanewise a - b
with lanes as i64
.
let a = m256i::from([5_i64; 4]); let b = m256i::from([10_i64; 4]); let c: [i64; 4] = sub_i64_m256i(a, b).into(); assert_eq!(c, [-5_i64; 4]);
- Intrinsic:
_mm256_sub_epi64
- Assembly:
vpsubq ymm, ymm, ymm