Skip to content

Commit 2af7de3

Browse files
Allow _mm_mullo_epi16 for mul in sse2
1 parent 3216c13 commit 2af7de3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/xsimd/arch/xsimd_sse2.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,6 +1090,13 @@ namespace xsimd
10901090
return _mm_mul_pd(self, other);
10911091
}
10921092

1093+
// mul
1094+
template <class A>
1095+
inline batch<int16_t, A> mul(batch<int16_t, A> const& self, batch<int16_t, A> const& other, requires_arch<sse2>) noexcept
1096+
{
1097+
return _mm_mullo_epi16(self, other);
1098+
}
1099+
10931100
// nearbyint_as_int
10941101
template <class A>
10951102
inline batch<int32_t, A> nearbyint_as_int(batch<float, A> const& self,

0 commit comments

Comments
 (0)