[−][src]Macro safe_arch::cmp_op_mask_m256
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 = m256::from_array([1.0, 5.0, 0.0, 7.0, 5.0, 6.0, 7.0, -20.0]); let b = m256::from_array([2.0, 1.0, 3.0, 4.0, 1.0, -2.0, -3.0, -4.0]); let c = cmp_op_mask_m256!(a, LessThanOrdered, b).to_bits(); assert_eq!(c, [u32::MAX, 0, u32::MAX, 0, 0, 0, 0, u32::MAX]);