[−][src]Function safe_arch::cmp_gt_mask_i16_m256i
#[must_use]pub fn cmp_gt_mask_i16_m256i(a: m256i, b: m256i) -> m256i
This is supported with target feature
avx2
only.Compare i16
lanes for a > b
, mask output.
assert_eq!( <[i16; 16]>::from(cmp_gt_mask_i16_m256i( m256i::from([1_i16; 16]), m256i::from([0_i16; 16]) )), [-1_i16; 16] ); assert_eq!( <[i16; 16]>::from(cmp_gt_mask_i16_m256i( m256i::from([5_i16; 16]), m256i::from([5_i16; 16]) )), [0_i16; 16] );
- Intrinsic:
_mm256_cmpgt_epi16
- Assembly:
vpcmpgtw ymm, ymm, ymm