diff options
author | Victor Costan <costan@google.com> | 2020-12-14 09:38:48 +0000 |
---|---|---|
committer | Victor Costan <costan@google.com> | 2020-12-14 09:59:23 +0000 |
commit | d1daa830445cf4873f66d522233ce2e4c8022d2d (patch) | |
tree | 1b55aa4937fb742481fe2658aa45a5c5b9c89f5c | |
parent | 3b571656fa4d73a5f6d21629a041b867045d5d49 (diff) | |
download | snappy-git-d1daa830445cf4873f66d522233ce2e4c8022d2d.tar.gz |
Remove inline qualifier from static variables.
This feature requires C++17. Fortunately, inline is useful for header declarations, which may be included in multiple compilation units. The declarations modified by this CL occur in a single compilation unit.
PiperOrigin-RevId: 347338760
-rw-r--r-- | snappy.cc | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -260,8 +260,8 @@ MakePatternMaskBytesTable(int index_offset, // This is an array of shuffle control masks that can be used as the source // operand for PSHUFB to permute the contents of the destination XMM register // into a repeating byte pattern. -alignas(16) inline constexpr std::array<std::array<char, sizeof(__m128i)>, - 16> pattern_generation_masks = +alignas(16) constexpr std::array<std::array<char, sizeof(__m128i)>, + 16> pattern_generation_masks = MakePatternMaskBytesTable( /*index_offset=*/0, /*pattern_sizes_minus_one=*/make_index_sequence<16>()); @@ -271,8 +271,8 @@ alignas(16) inline constexpr std::array<std::array<char, sizeof(__m128i)>, // Basically, pattern_reshuffle_masks is a continuation of // pattern_generation_masks. It follows that, pattern_reshuffle_masks is same as // pattern_generation_masks for offsets 1, 2, 4, 8 and 16. -alignas(16) inline constexpr std::array<std::array<char, sizeof(__m128i)>, - 16> pattern_reshuffle_masks = +alignas(16) constexpr std::array<std::array<char, sizeof(__m128i)>, + 16> pattern_reshuffle_masks = MakePatternMaskBytesTable( /*index_offset=*/16, /*pattern_sizes_minus_one=*/make_index_sequence<16>()); |