[−][src]Function safe_arch::cmp_unord_mask_m128_s
#[must_use]pub fn cmp_unord_mask_m128_s(a: m128, b: m128) -> m128
This is supported with target feature
sse
only.Low lane a.is_nan() | b.is_nan()
, other lanes unchanged.
Mask output.
let a = m128::from_array([0.0, 2.0, 3.0, 4.0]); let b = m128::from_array([0.0, f32::NAN, f32::NAN, f32::NAN]); let c = cmp_unord_mask_m128_s(a, b).to_bits(); assert_eq!(c, [0, 2_f32.to_bits(), 3_f32.to_bits(), 4_f32.to_bits()]);