Lines Matching refs:hc4
115 static void LZ4HC_init (LZ4HC_Data_Structure* hc4, const BYTE* start) in LZ4HC_init() argument
117 MEM_INIT((void*)hc4->hashTable, 0, sizeof(hc4->hashTable)); in LZ4HC_init()
118 MEM_INIT(hc4->chainTable, 0xFF, sizeof(hc4->chainTable)); in LZ4HC_init()
119 hc4->nextToUpdate = 64 KB; in LZ4HC_init()
120 hc4->base = start - 64 KB; in LZ4HC_init()
121 hc4->inputBuffer = start; in LZ4HC_init()
122 hc4->end = start; in LZ4HC_init()
123 hc4->dictBase = start - 64 KB; in LZ4HC_init()
124 hc4->dictLimit = 64 KB; in LZ4HC_init()
125 hc4->lowLimit = 64 KB; in LZ4HC_init()
130 FORCE_INLINE void LZ4HC_Insert (LZ4HC_Data_Structure* hc4, const BYTE* ip) in LZ4HC_Insert() argument
132 U16* chainTable = hc4->chainTable; in LZ4HC_Insert()
133 U32* HashTable = hc4->hashTable; in LZ4HC_Insert()
134 const BYTE* const base = hc4->base; in LZ4HC_Insert()
136 U32 idx = hc4->nextToUpdate; in LZ4HC_Insert()
148 hc4->nextToUpdate = target; in LZ4HC_Insert()
152 FORCE_INLINE int LZ4HC_InsertAndFindBestMatch (LZ4HC_Data_Structure* hc4, /* Index table will be … in LZ4HC_InsertAndFindBestMatch() argument
157 U16* const chainTable = hc4->chainTable; in LZ4HC_InsertAndFindBestMatch()
158 U32* const HashTable = hc4->hashTable; in LZ4HC_InsertAndFindBestMatch()
159 const BYTE* const base = hc4->base; in LZ4HC_InsertAndFindBestMatch()
160 const BYTE* const dictBase = hc4->dictBase; in LZ4HC_InsertAndFindBestMatch()
161 const U32 dictLimit = hc4->dictLimit; in LZ4HC_InsertAndFindBestMatch()
162 …const U32 lowLimit = (hc4->lowLimit + 64 KB > (U32)(ip-base)) ? hc4->lowLimit : (U32)(ip - base) -… in LZ4HC_InsertAndFindBestMatch()
169 LZ4HC_Insert(hc4, ip); in LZ4HC_InsertAndFindBestMatch()
207 LZ4HC_Data_Structure* hc4, in LZ4HC_InsertAndGetWiderMatch() argument
216 U16* const chainTable = hc4->chainTable; in LZ4HC_InsertAndGetWiderMatch()
217 U32* const HashTable = hc4->hashTable; in LZ4HC_InsertAndGetWiderMatch()
218 const BYTE* const base = hc4->base; in LZ4HC_InsertAndGetWiderMatch()
219 const U32 dictLimit = hc4->dictLimit; in LZ4HC_InsertAndGetWiderMatch()
220 …const U32 lowLimit = (hc4->lowLimit + 64 KB > (U32)(ip-base)) ? hc4->lowLimit : (U32)(ip - base) -… in LZ4HC_InsertAndGetWiderMatch()
221 const BYTE* const dictBase = hc4->dictBase; in LZ4HC_InsertAndGetWiderMatch()
229 LZ4HC_Insert(hc4, ip); in LZ4HC_InsertAndGetWiderMatch()
714 void* hc4 = ALLOCATOR(1, sizeof(LZ4HC_Data_Structure)); in LZ4_createHC() local
715 LZ4HC_init ((LZ4HC_Data_Structure*)hc4, (const BYTE*)inputBuffer); in LZ4_createHC()
716 return hc4; in LZ4_createHC()
748 LZ4HC_Data_Structure* hc4 = (LZ4HC_Data_Structure*)LZ4HC_Data; in LZ4_slideInputBufferHC() local
749 int dictSize = LZ4_saveDictHC((LZ4_streamHC_t*)LZ4HC_Data, (char*)(hc4->inputBuffer), 64 KB); in LZ4_slideInputBufferHC()
750 return (char*)(hc4->inputBuffer + dictSize); in LZ4_slideInputBufferHC()