[][src]Function safe_arch::store_masked_i64_m256i

#[must_use]pub fn store_masked_i64_m256i(addr: &mut m256i, mask: m256i, a: m256i)
This is supported with target feature avx2 only.

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_i64_m256i(
  &mut a,
  m256i::from([0_i64, -1, -1, 0]),
  m256i::from([5_i64; 4]),
);
assert_eq!(<[i64; 4]>::from(a), [0, 5, 5, 0]);