Skip to content

Commit e9bd979

Browse files
authored
Merge pull request #969 from xtensor-stack/feature/accurate-sincos
Fix sincos implementation to cope with Emscripten
2 parents 7bc4dd0 + c3f7bdd commit e9bd979

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

include/xsimd/arch/generic/xsimd_generic_math.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -974,12 +974,8 @@ namespace xsimd
974974
template <class A, class T>
975975
inline batch<std::complex<T>, A> polar(const batch<T, A>& r, const batch<T, A>& theta, requires_arch<generic>) noexcept
976976
{
977-
#ifndef EMSCRIPTEN
978977
auto sincosTheta = sincos(theta);
979978
return { r * sincosTheta.second, r * sincosTheta.first };
980-
#else
981-
return { r * cos(theta), r * sin(theta) };
982-
#endif
983979
}
984980

985981
// fdim

0 commit comments

Comments
 (0)