Skip to content

Commit a44922d

Browse files
authored
Merge pull request #973 from xtensor-stack/feature/prohibit-batch-of-bool
Disable batch of bools, and suggest using batch_bool instead
2 parents 7a275ba + ead311f commit a44922d

File tree

5 files changed

+1
-4
lines changed

5 files changed

+1
-4
lines changed

include/xsimd/types/xsimd_avx512f_register.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ namespace xsimd
5353
using type = simd_avx512_bool_register<T>;
5454
};
5555

56-
XSIMD_DECLARE_SIMD_REGISTER(bool, avx512f, __m512i);
5756
XSIMD_DECLARE_SIMD_REGISTER(signed char, avx512f, __m512i);
5857
XSIMD_DECLARE_SIMD_REGISTER(unsigned char, avx512f, __m512i);
5958
XSIMD_DECLARE_SIMD_REGISTER(char, avx512f, __m512i);

include/xsimd/types/xsimd_avx_register.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ namespace xsimd
4242
namespace types
4343
{
4444

45-
XSIMD_DECLARE_SIMD_REGISTER(bool, avx, __m256i);
4645
XSIMD_DECLARE_SIMD_REGISTER(signed char, avx, __m256i);
4746
XSIMD_DECLARE_SIMD_REGISTER(unsigned char, avx, __m256i);
4847
XSIMD_DECLARE_SIMD_REGISTER(char, avx, __m256i);

include/xsimd/types/xsimd_batch.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ namespace xsimd
112112
template <class T, class A>
113113
class batch : public types::simd_register<T, A>, public types::integral_only_operators<T, A>
114114
{
115+
static_assert(!std::is_same<T, bool>::value, "use xsimd::batch_bool<T, A> instead of xsimd::batch<bool, A>");
115116

116117
public:
117118
static constexpr std::size_t size = sizeof(types::simd_register<T, A>) / sizeof(T); ///< Number of scalar elements in this batch.

include/xsimd/types/xsimd_sse2_register.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ namespace xsimd
4040
#if XSIMD_WITH_SSE2
4141
namespace types
4242
{
43-
XSIMD_DECLARE_SIMD_REGISTER(bool, sse2, __m128i);
4443
XSIMD_DECLARE_SIMD_REGISTER(signed char, sse2, __m128i);
4544
XSIMD_DECLARE_SIMD_REGISTER(unsigned char, sse2, __m128i);
4645
XSIMD_DECLARE_SIMD_REGISTER(char, sse2, __m128i);

include/xsimd/types/xsimd_wasm_register.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ namespace xsimd
4040
#if XSIMD_WITH_WASM
4141
namespace types
4242
{
43-
XSIMD_DECLARE_SIMD_REGISTER(bool, wasm, v128_t);
4443
XSIMD_DECLARE_SIMD_REGISTER(signed char, wasm, v128_t);
4544
XSIMD_DECLARE_SIMD_REGISTER(unsigned char, wasm, v128_t);
4645
XSIMD_DECLARE_SIMD_REGISTER(char, wasm, v128_t);

0 commit comments

Comments
 (0)