Skip to content

Commit

Permalink
Node48 AVX2 code: add a static_assert
Browse files Browse the repository at this point in the history
  • Loading branch information
laurynas-biveinis committed Apr 28, 2022
1 parent 7d3e30c commit aad2f1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions art_internal_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1744,6 +1744,7 @@ class basic_inode_48 : public basic_inode_48_parent<ArtPolicy> {
__m128i
pointer_vector[basic_inode_48::capacity / 2]; // NOLINT(runtime/arrays)
#elif defined(UNODB_DETAIL_AVX2)
static_assert(basic_inode_48::capacity % 4 == 0);
// NOLINTNEXTLINE(modernize-avoid-c-arrays)
__m256i
pointer_vector[basic_inode_48::capacity / 4]; // NOLINT(runtime/arrays)
Expand Down

0 comments on commit aad2f1b

Please sign in to comment.