Function safe_arch::cmp_gt_mask_i8_m128i
source ยท pub fn cmp_gt_mask_i8_m128i(a: m128i, b: m128i) -> m128i
Available with target feature
sse2
only.Expand description
Lanewise a > b
with lanes as i8
.
All bits 1 for true (-1
), all bit 0 for false (0
).
let a = m128i::from([1_i8, 1, 20, 3, 40, 5, 60, 7, 80, 9, 10, 11, 12, 13, 14, 127]);
let b = m128i::from([0_i8, 11, 2, 13, 4, 15, 6, 17, 8, 19, -20, 21, 22, -23, 24, 120]);
let c: [i8; 16] = cmp_gt_mask_i8_m128i(a, b).into();
assert_eq!(c, [-1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, 0, -1, 0, -1]);