Skip to content

Conversation

@serge-sans-paille
Copy link
Contributor

No description provided.

@serge-sans-paille
Copy link
Contributor Author

cc @DiamonDinoia

{
detail::static_check_supported_config<T, A>();
kernel::store_masked<A, T, U, Values...>(mem, *this, mask, aligned_mode {}, A {});
static_assert(std::is_same<Mode, aligned_mode>::value || std::is_same<Mode, unaligned_mode>::value,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice refactor!

template <class A, class T, bool... Values, class Mode>
XSIMD_INLINE void store_masked(T* mem, batch<T, A> const& src, batch_bool_constant<T, A, Values...> mask, Mode, requires_arch<avx2>) noexcept
{
constexpr size_t lanes_per_half = sizeof(__m128i) / sizeof(T);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure why I did this here instead of using batch::size.

@DiamonDinoia
Copy link
Contributor

@serge-sans-paille nice. I like it! Always in favor of removing code.

@serge-sans-paille serge-sans-paille merged commit 0a93f13 into master Nov 26, 2025
129 of 144 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants