[][src]Function safe_arch::load_masked_m128

#[must_use]pub fn load_masked_m128(a: &m128, mask: m128i) -> m128
This is supported with target feature avx only.

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

When the high bit of a mask lane isn't set the loaded lane will be zero.

let a = m128::from([8.0, 17.0, 16.0, 12.0]);
let b = load_masked_m128(&a, m128i::from([0, -1, -1, 0])).to_array();
assert_eq!(b, [0.0, 17.0, 16.0, 0.0]);