Function safe_arch::cmp_eq_mask_i64_m256i

source ยท
pub fn cmp_eq_mask_i64_m256i(a: m256i, b: m256i) -> m256i
Available with target feature avx2 only.
Expand description

Compare i64 lanes for equality, mask output.

assert_eq!(
  <[i64; 4]>::from(cmp_eq_mask_i64_m256i(m256i::from([1_i64; 4]), m256i::from([1_i64; 4]))),
  [-1_i64; 4]
);
assert_eq!(
  <[i64; 4]>::from(cmp_eq_mask_i64_m256i(m256i::from([5_i64; 4]), m256i::from([6_i64; 4]))),
  [0_i64; 4]
);