Skip to content

Commit

Permalink
Fixed implementation for bitwise_xor
Browse files Browse the repository at this point in the history
  • Loading branch information
anutosh491 committed Oct 5, 2023
1 parent 5ad20b2 commit 6a78841
Showing 1 changed file with 5 additions and 24 deletions.
29 changes: 5 additions & 24 deletions include/xsimd/arch/xsimd_wasm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,36 +176,17 @@ namespace xsimd
}

// bitwise_xor
template <class A>
inline batch<float, A> bitwise_xor(batch<float, A> const& self, batch<float, A> const& other, requires_arch<wasm>) noexcept
template <class A, class T>
inline batch<T, A> bitwise_xor(batch<T, A> const& self, batch<T, A> const& other, requires_arch<wasm>) noexcept
{
return wasm_v128_xor(self, other);
}
template <class A>
inline batch_bool<float, A> bitwise_xor(batch_bool<float, A> const& self, batch_bool<float, A> const& other, requires_arch<wasm>) noexcept

template <class A, class T>
inline batch_bool<T, A> bitwise_xor(batch_bool<T, A> const& self, batch_bool<T, A> const& other, requires_arch<wasm>) noexcept
{
return wasm_v128_xor(self, other);
}
template <class A, class T, class = typename std::enable_if<std::is_integral<T>::value, void>::type>
inline batch<T, A> bitwise_xor(batch<T, A> const& self, batch<T, A> const& other, requires_arch<wasm>) noexcept
{
return wasm_v128_or(self, other);
}
template <class A>
inline batch<double, A> bitwise_xor(batch<double, A> const& self, batch<double, A> const& other, requires_arch<wasm>) noexcept
{
return wasm_v128_or(self, other);
}
template <class A>
inline batch_bool<double, A> bitwise_xor(batch_bool<double, A> const& self, batch_bool<double, A> const& other, requires_arch<wasm>) noexcept
{
return wasm_v128_or(self, other);
}
template <class A, class T, class = typename std::enable_if<std::is_integral<T>::value, void>::type>
inline batch<T, A> bitwise_xor(batch_bool<T, A> const& self, batch_bool<T, A> const& other, requires_arch<wasm>) noexcept
{
return wasm_v128_or(self, other);
}

// broadcast
template <class A>
Expand Down

0 comments on commit 6a78841

Please sign in to comment.