Function load_masked_i32_m128i
pub fn load_masked_i32_m128i(a: &m128i, mask: m128i) -> m128i
Available on crate feature
dep_safe_arch
only.Expand description
Loads the reference given and zeroes any i32
lanes not in the mask.
- 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”).
let a = set_splat_i32_m128i(5);
let b = load_masked_i32_m128i(&a, m128i::from([-1_i32, 0, 0, -1]));
assert_eq!(<[i32; 4]>::from(b), [5, 0, 0, 5]);
- Intrinsic:
_mm_maskload_epi32
- Assembly:
vpmaskmovd xmm, xmm, m128