34 #ifndef __MEM_CACHE_COMPRESSORS_CPACK_HH__
35 #define __MEM_CACHE_COMPRESSORS_CPACK_HH__
75 using PatternFactory = Factory<PatternZZZZ, PatternMMMM, PatternZZZX,
83 static std::map<int, std::string> patternNames = {
88 return patternNames[number];
94 const int match_location)
const override
96 return PatternFactory::getPattern(bytes, dict_bytes, match_location);
101 std::unique_ptr<Base::CompressionData>
compress(
124 : MaskedValuePattern<0, 0xFFFFFFFF>(
ZZZZ, 0x0, 2, match_location,
134 : UncompressedPattern(
XXXX, 0x1, 2, match_location, bytes)
143 : MaskedPattern<0xFFFFFFFF>(
MMMM, 0x2, 6, match_location, bytes, true)
152 : MaskedPattern<0xFFFF0000>(
MMXX, 0xC, 8, match_location, bytes, true)
161 : MaskedValuePattern<0, 0xFFFFFF00>(
ZZZX, 0xD, 4, match_location,
171 : MaskedPattern<0xFFFFFF00>(
MMMX, 0xE, 8, match_location, bytes, true)
178 #endif //__MEM_CACHE_COMPRESSORS_CPACK_HH__