diff --git a/lib/kite_deflate.c b/lib/kite_deflate.c index f5bb2fd2..91019e38 100644 --- a/lib/kite_deflate.c +++ b/lib/kite_deflate.c @@ -47,6 +47,11 @@ unsigned long erofs_memcmp2(const u8 *s1, const u8 *s2, #define kMatchMinLen 3 #define kMatchMaxLen32 kNumLenSymbols32 + kMatchMinLen - 1 +#define kTableDirectLevels 16 +#define kBitLensRepNumber_3_6 kTableDirectLevels +#define kBitLens0Number_3_10 (kBitLensRepNumber_3_6 + 1) +#define kBitLens0Number_11_138 (kBitLens0Number_3_10 + 1) + static u32 kstaticHuff_mainCodes[kFixedLenTableSize]; static const u8 kstaticHuff_litLenLevels[kFixedLenTableSize] = { [0 ... 143] = 8, [144 ... 255] = 9, @@ -75,11 +80,6 @@ const u8 kCodeLengthAlphabetOrder[kLensTableSize] = const u8 kLevelExtraBits[3] = {2, 3, 7}; -const unsigned int kTableDirectLevels = 16; -const unsigned int kBitLensRepNumber_3_6 = kTableDirectLevels; -const unsigned int kBitLens0Number_3_10 = kBitLensRepNumber_3_6 + 1; -const unsigned int kBitLens0Number_11_138 = kBitLens0Number_3_10 + 1; - #define kStored 0 #define kFixedHuffman 1 #define kDynamicHuffman 2