Function safe_arch::cmp_gt_mask_i32_m128i
source · pub fn cmp_gt_mask_i32_m128i(a: m128i, b: m128i) -> m128i
Expand description
Lanewise a > b
with lanes as i32
.
All bits 1 for true (-1
), all bit 0 for false (0
).
let a = m128i::from([1, 20, 7, 40]);
let b = m128i::from([5, 2, 7, 4]);
let c: [i32; 4] = cmp_gt_mask_i32_m128i(a, b).into();
assert_eq!(c, [0, -1, 0, -1]);