Function safe_arch::mul_i32_keep_low_m256i
source ยท pub fn mul_i32_keep_low_m256i(a: m256i, b: m256i) -> m256i
Available with target feature
avx2
only.Expand description
Multiply the i32
lanes and keep the low half of each 64-bit output.
let a = m256i::from([0_i32, 1, 2, 3, 4, 5, 6, 7]);
let b = m256i::from([0_i32, 11, 2, -13, 4, 15, 6, -17]);
let c: [i32; 8] = mul_i32_keep_low_m256i(a, b).into();
assert_eq!(c, [0, 11, 4, -39, 16, 75, 36, -119]);
- Intrinsic:
_mm256_mullo_epi32
- Assembly:
vpmulld ymm, ymm, ymm