Function safe_arch::cmp_gt_mask_i8_m256i
source ยท pub fn cmp_gt_mask_i8_m256i(a: m256i, b: m256i) -> m256i
Available with target feature
avx2
only.Expand description
Compare i8
lanes for a > b
, mask output.
assert_eq!(
<[i8; 32]>::from(cmp_gt_mask_i8_m256i(m256i::from([1_i8; 32]), m256i::from([0_i8; 32]))),
[-1_i8; 32]
);
assert_eq!(
<[i8; 32]>::from(cmp_gt_mask_i8_m256i(m256i::from([5_i8; 32]), m256i::from([5_i8; 32]))),
[0_i8; 32]
);
- Intrinsic:
_mm256_cmpgt_epi8
- Assembly:
vpcmpgtb ymm, ymm, ymm