Function load_masked_i64_m256i
pub fn load_masked_i64_m256i(a: &m256i, mask: m256i) -> m256i
Available on crate feature
dep_safe_arch
only.Expand description
Loads the reference given and zeroes any i64
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 = m256i::from([5_i64; 4]);
let b = load_masked_i64_m256i(&a, m256i::from([0_i64, -1, -1, 0]));
assert_eq!(<[i64; 4]>::from(b), [0_i64, 5, 5, 0]);
- Intrinsic:
_mm256_maskload_epi64
- Assembly:
vpmaskmovq ymm, ymm, m256