Function safe_arch::sub_i64_m256i
source ยท pub fn sub_i64_m256i(a: m256i, b: m256i) -> m256i
Available with target feature
avx2
only.Expand description
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