MCPcopy Create free account
hub / github.com/google/snappy / MakePatternMaskBytesTable

Function MakePatternMaskBytesTable

snappy.cc:301–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299// returns an array.
300template <size_t... pattern_sizes_minus_one>
301inline constexpr std::array<std::array<char, sizeof(V128)>,
302 sizeof...(pattern_sizes_minus_one)>
303MakePatternMaskBytesTable(int index_offset,
304 index_sequence<pattern_sizes_minus_one...>) {
305 return {
306 MakePatternMaskBytes(index_offset, pattern_sizes_minus_one + 1,
307 make_index_sequence</*indexes=*/sizeof(V128)>())...};
308}
309// This is an array of shuffle control masks that can be used as the source
310// operand for PSHUFB to permute the contents of the destination XMM register
311// into a repeating byte pattern.

Callers 1

snappy.ccFile · 0.85

Calls 1

MakePatternMaskBytesFunction · 0.85

Tested by

no test coverage detected