Skip to content

Commit 3f52c73

Browse files
WIP
1 parent 56b98a0 commit 3f52c73

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/xsimd/arch/xsimd_avx512f.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,11 +413,11 @@ namespace xsimd
413413

414414
constexpr mask_register_type lo_bitmask = xsimd::utils::make_low_mask<mask_register_type>(mask.size / 2);
415415
mask_register_type lo_mask = nmask & lo_bitmask;
416-
lo_mask |= lo_mask << (mask.size / 2);
416+
lo_mask = detail::interleave(lo_mask);
417417

418418
constexpr mask_register_type hi_bitmask = lo_bitmask << (mask.size / 2);
419419
mask_register_type hi_mask = nmask & hi_bitmask;
420-
hi_mask |= hi_mask >> (mask.size / 2);
420+
hi_mask = detail::interleave(hi_mask);
421421

422422
return { batch_bool<T, A> { lo_mask }, batch_bool<T, A> { hi_mask } };
423423
}

0 commit comments

Comments
 (0)