diff --git a/include/xsimd/types/xsimd_api.hpp b/include/xsimd/types/xsimd_api.hpp index dcaddd451..6a1526d95 100644 --- a/include/xsimd/types/xsimd_api.hpp +++ b/include/xsimd/types/xsimd_api.hpp @@ -648,6 +648,21 @@ namespace xsimd return x == y; } + /** + * @ingroup batch_logical + * + * Element-wise equality comparison of batches of boolean values \c x and \c y. + * @param x batch of booleans involved in the comparison. + * @param y batch of booleans involved in the comparison. + * @return a boolean batch. + */ + template + inline auto eq(batch_bool const& x, batch_bool const& y) noexcept -> decltype(x == y) + { + detail::static_check_supported_config(); + return x == y; + } + /** * @ingroup batch_math * @@ -1521,6 +1536,21 @@ namespace xsimd return x != y; } + /** + * @ingroup batch_logical + * + * Element-wise inequality comparison of batches of boolean values \c x and \c y. + * @param x batch of booleans involved in the comparison. + * @param y batch of booleans involved in the comparison. + * @return a boolean batch. + */ + template + inline auto neq(batch_bool const& x, batch_bool const& y) noexcept -> decltype(x != y) + { + detail::static_check_supported_config(); + return x != y; + } + /** * @ingroup batch_arithmetic *