Lines Matching refs:hc4
93 static void LZ4HC_clearTables (LZ4HC_CCtx_internal* hc4) in LZ4HC_clearTables() argument
95 MEM_INIT((void*)hc4->hashTable, 0, sizeof(hc4->hashTable)); in LZ4HC_clearTables()
96 MEM_INIT(hc4->chainTable, 0xFF, sizeof(hc4->chainTable)); in LZ4HC_clearTables()
99 static void LZ4HC_init_internal (LZ4HC_CCtx_internal* hc4, const BYTE* start) in LZ4HC_init_internal() argument
101 uptrval startingOffset = (uptrval)(hc4->end - hc4->base); in LZ4HC_init_internal()
103 LZ4HC_clearTables(hc4); in LZ4HC_init_internal()
107 hc4->nextToUpdate = (U32) startingOffset; in LZ4HC_init_internal()
108 hc4->base = start - startingOffset; in LZ4HC_init_internal()
109 hc4->end = start; in LZ4HC_init_internal()
110 hc4->dictBase = start - startingOffset; in LZ4HC_init_internal()
111 hc4->dictLimit = (U32) startingOffset; in LZ4HC_init_internal()
112 hc4->lowLimit = (U32) startingOffset; in LZ4HC_init_internal()
117 LZ4_FORCE_INLINE void LZ4HC_Insert (LZ4HC_CCtx_internal* hc4, const BYTE* ip) in LZ4HC_Insert() argument
119 U16* const chainTable = hc4->chainTable; in LZ4HC_Insert()
120 U32* const hashTable = hc4->hashTable; in LZ4HC_Insert()
121 const BYTE* const base = hc4->base; in LZ4HC_Insert()
123 U32 idx = hc4->nextToUpdate; in LZ4HC_Insert()
134 hc4->nextToUpdate = target; in LZ4HC_Insert()
236 LZ4HC_CCtx_internal* hc4, in LZ4HC_InsertAndGetWiderMatch() argument
249 U16* const chainTable = hc4->chainTable; in LZ4HC_InsertAndGetWiderMatch()
250 U32* const HashTable = hc4->hashTable; in LZ4HC_InsertAndGetWiderMatch()
251 const LZ4HC_CCtx_internal * const dictCtx = hc4->dictCtx; in LZ4HC_InsertAndGetWiderMatch()
252 const BYTE* const base = hc4->base; in LZ4HC_InsertAndGetWiderMatch()
253 const U32 dictLimit = hc4->dictLimit; in LZ4HC_InsertAndGetWiderMatch()
256 …const U32 lowestMatchIndex = (hc4->lowLimit + (LZ4_DISTANCE_MAX + 1) > ipIndex) ? hc4->lowLimit : … in LZ4HC_InsertAndGetWiderMatch()
257 const BYTE* const dictBase = hc4->dictBase; in LZ4HC_InsertAndGetWiderMatch()
268 LZ4HC_Insert(hc4, ip); in LZ4HC_InsertAndGetWiderMatch()
297 const BYTE* const dictStart = dictBase + hc4->lowLimit; in LZ4HC_InsertAndGetWiderMatch()
353 const BYTE* const dictStart = dictBase + hc4->lowLimit; in LZ4HC_InsertAndGetWiderMatch()
363 … if (!extDict && matchPtr - backLength == lowPrefixPtr && hc4->lowLimit < dictLimit) { in LZ4HC_InsertAndGetWiderMatch()
445 int LZ4HC_InsertAndFindBestMatch(LZ4HC_CCtx_internal* const hc4, /* Index table will be updated */ in LZ4HC_InsertAndFindBestMatch() argument
456 …return LZ4HC_InsertAndGetWiderMatch(hc4, ip, ip, iLimit, MINMATCH-1, matchpos, &uselessPtr, maxNbA… in LZ4HC_InsertAndFindBestMatch()
1172 LZ4_streamHC_t* const hc4 = LZ4_initStreamHC(state, sizeof(*hc4)); in LZ4_resetStreamStateHC() local
1173 if (hc4 == NULL) return 1; /* init failed */ in LZ4_resetStreamStateHC()
1174 LZ4HC_init_internal (&hc4->internal_donotuse, (const BYTE*)inputBuffer); in LZ4_resetStreamStateHC()
1180 LZ4_streamHC_t* const hc4 = LZ4_createStreamHC(); in LZ4_createHC() local
1181 if (hc4 == NULL) return NULL; /* not enough memory */ in LZ4_createHC()
1182 LZ4HC_init_internal (&hc4->internal_donotuse, (const BYTE*)inputBuffer); in LZ4_createHC()
1183 return hc4; in LZ4_createHC()