[−][src]Macro safe_arch::cmp_op_mask_m128
This is supported with target feature
avx
only.Compare f32
lanes according to the operation specified, mask output.
- Operators are according to the
comparison_operator_translation
macro.
let a = m128::from_array([2.0, 0.0, -2.0, 0.0]); let b = m128::from_array([1.0, 1.0, -1.0, -1.0]); let c = cmp_op_mask_m128!(a, GreaterThanOrdered, b).to_bits(); assert_eq!(c, [u32::MAX, 0, 0, u32::MAX]);