Function store_masked_i32_m256i
pub fn store_masked_i32_m256i(addr: &mut m256i, mask: m256i, a: m256i)
Available on crate feature
dep_safe_arch
only.Expand description
Stores the i32
masked lanes given to the reference.
- A lane is “in” the mask if that lane’s mask value is set in the high bit (aka “if the lane’s value is negative”).
- Lanes not in the mask are not modified.
let mut a = m256i::default();
store_masked_i32_m256i(
&mut a,
m256i::from([-1_i32, 0, 0, -1, -1, -1, 0, 0]),
m256i::from([5_i32; 8]),
);
assert_eq!(<[i32; 8]>::from(a), [5, 0, 0, 5, 5, 5, 0, 0]);
- Intrinsic:
_mm256_maskstore_epi32
- Assembly:
vpmaskmovd m256, ymm, ymm