Lines Matching refs:hc4
89 static void LZ4HC_clearTables (LZ4HC_CCtx_internal* hc4) in LZ4HC_clearTables() argument
91 MEM_INIT((void*)hc4->hashTable, 0, sizeof(hc4->hashTable)); in LZ4HC_clearTables()
92 MEM_INIT(hc4->chainTable, 0xFF, sizeof(hc4->chainTable)); in LZ4HC_clearTables()
95 static void LZ4HC_init (LZ4HC_CCtx_internal* hc4, const BYTE* start) in LZ4HC_init() argument
97 uptrval startingOffset = hc4->end - hc4->base; in LZ4HC_init()
99 LZ4HC_clearTables(hc4); in LZ4HC_init()
103 hc4->nextToUpdate = (U32) startingOffset; in LZ4HC_init()
104 hc4->base = start - startingOffset; in LZ4HC_init()
105 hc4->end = start; in LZ4HC_init()
106 hc4->dictBase = start - startingOffset; in LZ4HC_init()
107 hc4->dictLimit = (U32) startingOffset; in LZ4HC_init()
108 hc4->lowLimit = (U32) startingOffset; in LZ4HC_init()
113 LZ4_FORCE_INLINE void LZ4HC_Insert (LZ4HC_CCtx_internal* hc4, const BYTE* ip) in LZ4HC_Insert() argument
115 U16* const chainTable = hc4->chainTable; in LZ4HC_Insert()
116 U32* const hashTable = hc4->hashTable; in LZ4HC_Insert()
117 const BYTE* const base = hc4->base; in LZ4HC_Insert()
119 U32 idx = hc4->nextToUpdate; in LZ4HC_Insert()
130 hc4->nextToUpdate = target; in LZ4HC_Insert()
207 LZ4HC_CCtx_internal* hc4, in LZ4HC_InsertAndGetWiderMatch() argument
220 U16* const chainTable = hc4->chainTable; in LZ4HC_InsertAndGetWiderMatch()
221 U32* const HashTable = hc4->hashTable; in LZ4HC_InsertAndGetWiderMatch()
222 const LZ4HC_CCtx_internal * const dictCtx = hc4->dictCtx; in LZ4HC_InsertAndGetWiderMatch()
223 const BYTE* const base = hc4->base; in LZ4HC_InsertAndGetWiderMatch()
224 const U32 dictLimit = hc4->dictLimit; in LZ4HC_InsertAndGetWiderMatch()
227 …const U32 lowestMatchIndex = (hc4->lowLimit + 64 KB > ipIndex) ? hc4->lowLimit : ipIndex - MAX_DIS… in LZ4HC_InsertAndGetWiderMatch()
228 const BYTE* const dictBase = hc4->dictBase; in LZ4HC_InsertAndGetWiderMatch()
240 LZ4HC_Insert(hc4, ip); in LZ4HC_InsertAndGetWiderMatch()
269 const BYTE* const dictStart = dictBase + hc4->lowLimit; in LZ4HC_InsertAndGetWiderMatch()
384 int LZ4HC_InsertAndFindBestMatch(LZ4HC_CCtx_internal* const hc4, /* Index table will be updated */ in LZ4HC_InsertAndFindBestMatch() argument
395 …return LZ4HC_InsertAndGetWiderMatch(hc4, ip, ip, iLimit, MINMATCH-1, matchpos, &uselessPtr, maxNbA… in LZ4HC_InsertAndFindBestMatch()
1058 LZ4_streamHC_t* hc4 = (LZ4_streamHC_t*)ALLOC(sizeof(LZ4_streamHC_t)); in LZ4_createHC() local
1059 if (hc4 == NULL) return NULL; /* not enough memory */ in LZ4_createHC()
1060 LZ4_resetStreamHC(hc4, 0 /* compressionLevel */); in LZ4_createHC()
1061 LZ4HC_init (&hc4->internal_donotuse, (const BYTE*)inputBuffer); in LZ4_createHC()
1062 return hc4; in LZ4_createHC()