[][src]Function safe_arch::store_masked_m256

pub fn store_masked_m256(addr: &mut m256, mask: m256i, a: m256)
This is supported with target feature avx only.

Store data from a register into memory according to a mask.

When the high bit of a mask lane isn't set that lane is not written.

let mut a = m256::default();
store_masked_m256(
  &mut a,
  m256i::from([0, -1, -1, 0, -1, -1, 0, 0]),
  m256::from([8.0, 17.0, 16.0, 20.0, 80.0, 1.0, 2.0, 3.0]),
);
assert_eq!(a.to_array(), [0.0, 17.0, 16.0, 0.0, 80.0, 1.0, 0.0, 0.0]);