pub fn cmp_eq_mask_m128_s(a: m128, b: m128) -> m128
Available with target feature sse only.
Expand description

Low lane a == b, other lanes unchanged.

Mask output.

let a = m128::from_array([1.0, 0.0, 1.0, 0.0]);
let b = m128::from_array([1.0, 1.0, 0.0, 0.0]);
let c = cmp_eq_mask_m128_s(a, b).to_bits();
assert_eq!(c, [u32::MAX, 0, 1_f32.to_bits(), 0]);