Skip to content

Commit

Permalink
Merge pull request #973 from xtensor-stack/feature/prohibit-batch-of-…
Browse files Browse the repository at this point in the history
…bool

Disable batch of bools, and suggest using batch_bool instead
  • Loading branch information
JohanMabille authored Nov 29, 2023
2 parents 7a275ba + ead311f commit a44922d
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion include/xsimd/types/xsimd_avx512f_register.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ namespace xsimd
using type = simd_avx512_bool_register<T>;
};

XSIMD_DECLARE_SIMD_REGISTER(bool, avx512f, __m512i);
XSIMD_DECLARE_SIMD_REGISTER(signed char, avx512f, __m512i);
XSIMD_DECLARE_SIMD_REGISTER(unsigned char, avx512f, __m512i);
XSIMD_DECLARE_SIMD_REGISTER(char, avx512f, __m512i);
Expand Down
1 change: 0 additions & 1 deletion include/xsimd/types/xsimd_avx_register.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ namespace xsimd
namespace types
{

XSIMD_DECLARE_SIMD_REGISTER(bool, avx, __m256i);
XSIMD_DECLARE_SIMD_REGISTER(signed char, avx, __m256i);
XSIMD_DECLARE_SIMD_REGISTER(unsigned char, avx, __m256i);
XSIMD_DECLARE_SIMD_REGISTER(char, avx, __m256i);
Expand Down
1 change: 1 addition & 0 deletions include/xsimd/types/xsimd_batch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ namespace xsimd
template <class T, class A>
class batch : public types::simd_register<T, A>, public types::integral_only_operators<T, A>
{
static_assert(!std::is_same<T, bool>::value, "use xsimd::batch_bool<T, A> instead of xsimd::batch<bool, A>");

public:
static constexpr std::size_t size = sizeof(types::simd_register<T, A>) / sizeof(T); ///< Number of scalar elements in this batch.
Expand Down
1 change: 0 additions & 1 deletion include/xsimd/types/xsimd_sse2_register.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ namespace xsimd
#if XSIMD_WITH_SSE2
namespace types
{
XSIMD_DECLARE_SIMD_REGISTER(bool, sse2, __m128i);
XSIMD_DECLARE_SIMD_REGISTER(signed char, sse2, __m128i);
XSIMD_DECLARE_SIMD_REGISTER(unsigned char, sse2, __m128i);
XSIMD_DECLARE_SIMD_REGISTER(char, sse2, __m128i);
Expand Down
1 change: 0 additions & 1 deletion include/xsimd/types/xsimd_wasm_register.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ namespace xsimd
#if XSIMD_WITH_WASM
namespace types
{
XSIMD_DECLARE_SIMD_REGISTER(bool, wasm, v128_t);
XSIMD_DECLARE_SIMD_REGISTER(signed char, wasm, v128_t);
XSIMD_DECLARE_SIMD_REGISTER(unsigned char, wasm, v128_t);
XSIMD_DECLARE_SIMD_REGISTER(char, wasm, v128_t);
Expand Down

0 comments on commit a44922d

Please sign in to comment.