Skip to content

Commit

Permalink
Allow _mm_mullo_epi16 for mul in sse2
Browse files Browse the repository at this point in the history
  • Loading branch information
serge-sans-paille committed Jan 9, 2024
1 parent 3216c13 commit 0feb5df
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/xsimd/arch/xsimd_sse2.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,13 @@ namespace xsimd
return _mm_mul_pd(self, other);
}

// mul
template <class A>
inline batch<int16_t, A> mul(batch<int16_t, A> const& self, batch<int16_t, A> const& other, requires_arch<sse2>) noexcept
{
return _mm_mullo_epi16(self, other);
}

// nearbyint_as_int
template <class A>
inline batch<int32_t, A> nearbyint_as_int(batch<float, A> const& self,
Expand Down

0 comments on commit 0feb5df

Please sign in to comment.