We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce58d62 commit 609ae41Copy full SHA for 609ae41
include/xsimd/types/xsimd_batch.hpp
@@ -1347,8 +1347,8 @@ namespace xsimd
1347
template <class T, class A>
1348
inline batch<std::complex<T>, A>& batch<std::complex<T>, A>::operator*=(batch const& other) noexcept
1349
{
1350
- real_batch new_real = real() * other.real() - imag() * other.imag();
1351
- real_batch new_imag = real() * other.imag() + imag() * other.real();
+ real_batch new_real = fms(real(), other.real(), imag() * other.imag());
+ real_batch new_imag = fma(real(), other.imag(), imag() * other.real());
1352
m_real = new_real;
1353
m_imag = new_imag;
1354
return *this;
0 commit comments