Function safe_arch::cmp_gt_mask_m128_s
source ยท pub fn cmp_gt_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([2.5, 2.0, 3.0, 4.0]);
let b = m128::from_array([2.0, 2.0, 2.0, 2.0]);
let c = cmp_gt_mask_m128_s(a, b).to_bits();
assert_eq!(c, [u32::MAX, 2_f32.to_bits(), 3_f32.to_bits(), 4_f32.to_bits()]);