Skip to content

Commit 1e83d9e

Browse files
[cleanup] Remove some redundant code in batch_bool_constant
1 parent 6ebf925 commit 1e83d9e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/xsimd/types/xsimd_batch_constant.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ namespace xsimd
230230
static_assert(Begin <= End, "splice: Begin must be <= End");
231231
static_assert(End <= sizeof...(Values), "splice: End must be <= size");
232232
static_assert(N == batch_bool<T, A2>::size, "splice: target arch size must match submask length");
233-
return splice_impl<A2, Begin, T, A, Values...>(make_index_sequence<N>());
233+
return {};
234234
}
235235

236236
template <class A2, typename T, class A, bool... Values>
@@ -240,7 +240,7 @@ namespace xsimd
240240
static_assert(sizeof...(Values) % 2 == 0, "lower_half requires even size");
241241
static_assert(batch_bool<T, A2>::size == sizeof...(Values) / 2,
242242
"lower_half: target arch size must match submask length");
243-
return splice_impl<A2, 0, T, A, Values...>(make_index_sequence<sizeof...(Values) / 2>());
243+
return {};
244244
}
245245

246246
template <class A2, typename T, class A, bool... Values>
@@ -250,7 +250,7 @@ namespace xsimd
250250
static_assert(sizeof...(Values) % 2 == 0, "upper_half requires even size");
251251
static_assert(batch_bool<T, A2>::size == sizeof...(Values) / 2,
252252
"upper_half: target arch size must match submask length");
253-
return splice_impl<A2, sizeof...(Values) / 2, T, A, Values...>(make_index_sequence<sizeof...(Values) / 2>());
253+
return {};
254254
}
255255
} // namespace detail
256256

0 commit comments

Comments
 (0)