[][src]Macro safe_arch::cmp_op_mask_m128_s

macro_rules! cmp_op_mask_m128_s {
    ($a:expr, $op:tt, $b:expr) => { ... };
    (@_raw_call $a:expr, $b:expr, $imm:expr) => { ... };
}
This is supported with target feature avx only.

Compare f32 lanes according to the operation specified, mask output.

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_s!(a, GreaterThanOrdered, b).to_bits();
assert_eq!(c, [u32::MAX, 0, (-2_f32).to_bits(), 0]);