Lines Matching refs:hc4
61 static void LZ4HC_init(LZ4HC_CCtx_internal *hc4, const BYTE *start) in LZ4HC_init() argument
63 memset((void *)hc4->hashTable, 0, sizeof(hc4->hashTable)); in LZ4HC_init()
64 memset(hc4->chainTable, 0xFF, sizeof(hc4->chainTable)); in LZ4HC_init()
65 hc4->nextToUpdate = 64 * KB; in LZ4HC_init()
66 hc4->base = start - 64 * KB; in LZ4HC_init()
67 hc4->end = start; in LZ4HC_init()
68 hc4->dictBase = start - 64 * KB; in LZ4HC_init()
69 hc4->dictLimit = 64 * KB; in LZ4HC_init()
70 hc4->lowLimit = 64 * KB; in LZ4HC_init()
74 static FORCE_INLINE void LZ4HC_Insert(LZ4HC_CCtx_internal *hc4, in LZ4HC_Insert() argument
77 U16 * const chainTable = hc4->chainTable; in LZ4HC_Insert()
78 U32 * const hashTable = hc4->hashTable; in LZ4HC_Insert()
79 const BYTE * const base = hc4->base; in LZ4HC_Insert()
81 U32 idx = hc4->nextToUpdate; in LZ4HC_Insert()
96 hc4->nextToUpdate = target; in LZ4HC_Insert()
100 LZ4HC_CCtx_internal *hc4, /* Index table will be updated */ in LZ4HC_InsertAndFindBestMatch() argument
106 U16 * const chainTable = hc4->chainTable; in LZ4HC_InsertAndFindBestMatch()
107 U32 * const HashTable = hc4->hashTable; in LZ4HC_InsertAndFindBestMatch()
108 const BYTE * const base = hc4->base; in LZ4HC_InsertAndFindBestMatch()
109 const BYTE * const dictBase = hc4->dictBase; in LZ4HC_InsertAndFindBestMatch()
110 const U32 dictLimit = hc4->dictLimit; in LZ4HC_InsertAndFindBestMatch()
111 const U32 lowLimit = (hc4->lowLimit + 64 * KB > (U32)(ip - base)) in LZ4HC_InsertAndFindBestMatch()
112 ? hc4->lowLimit in LZ4HC_InsertAndFindBestMatch()
119 LZ4HC_Insert(hc4, ip); in LZ4HC_InsertAndFindBestMatch()
169 LZ4HC_CCtx_internal *hc4, in LZ4HC_InsertAndGetWiderMatch() argument
178 U16 * const chainTable = hc4->chainTable; in LZ4HC_InsertAndGetWiderMatch()
179 U32 * const HashTable = hc4->hashTable; in LZ4HC_InsertAndGetWiderMatch()
180 const BYTE * const base = hc4->base; in LZ4HC_InsertAndGetWiderMatch()
181 const U32 dictLimit = hc4->dictLimit; in LZ4HC_InsertAndGetWiderMatch()
183 const U32 lowLimit = (hc4->lowLimit + 64 * KB > (U32)(ip - base)) in LZ4HC_InsertAndGetWiderMatch()
184 ? hc4->lowLimit in LZ4HC_InsertAndGetWiderMatch()
186 const BYTE * const dictBase = hc4->dictBase; in LZ4HC_InsertAndGetWiderMatch()
192 LZ4HC_Insert(hc4, ip); in LZ4HC_InsertAndGetWiderMatch()