Function safe_arch::cmp_unord_mask_m128
source · pub fn cmp_unord_mask_m128(a: m128, b: m128) -> m128
Expand description
Lanewise a.is_nan() | b.is_nan()
.
Mask output.
let a = m128::from_array([0.0, f32::NAN, 0.0, f32::NAN]);
let b = m128::from_array([0.0, 0.0, f32::NAN, f32::NAN]);
let c = cmp_unord_mask_m128(a, b).to_bits();
assert_eq!(c, [0, u32::MAX, u32::MAX, u32::MAX]);