Lines Matching defs:hc4
60 static void LZ4HC_init(LZ4HC_CCtx_internal *hc4, const BYTE *start)
62 memset((void *)hc4->hashTable, 0, sizeof(hc4->hashTable));
63 memset(hc4->chainTable, 0xFF, sizeof(hc4->chainTable));
64 hc4->nextToUpdate = 64 * KB;
65 hc4->base = start - 64 * KB;
66 hc4->end = start;
67 hc4->dictBase = start - 64 * KB;
68 hc4->dictLimit = 64 * KB;
69 hc4->lowLimit = 64 * KB;
73 static FORCE_INLINE void LZ4HC_Insert(LZ4HC_CCtx_internal *hc4,
76 U16 * const chainTable = hc4->chainTable;
77 U32 * const hashTable = hc4->hashTable;
78 const BYTE * const base = hc4->base;
80 U32 idx = hc4->nextToUpdate;
95 hc4->nextToUpdate = target;
99 LZ4HC_CCtx_internal *hc4, /* Index table will be updated */
105 U16 * const chainTable = hc4->chainTable;
106 U32 * const HashTable = hc4->hashTable;
107 const BYTE * const base = hc4->base;
108 const BYTE * const dictBase = hc4->dictBase;
109 const U32 dictLimit = hc4->dictLimit;
110 const U32 lowLimit = (hc4->lowLimit + 64 * KB > (U32)(ip - base))
111 ? hc4->lowLimit
118 LZ4HC_Insert(hc4, ip);
168 LZ4HC_CCtx_internal *hc4,
177 U16 * const chainTable = hc4->chainTable;
178 U32 * const HashTable = hc4->hashTable;
179 const BYTE * const base = hc4->base;
180 const U32 dictLimit = hc4->dictLimit;
182 const U32 lowLimit = (hc4->lowLimit + 64 * KB > (U32)(ip - base))
183 ? hc4->lowLimit
185 const BYTE * const dictBase = hc4->dictBase;
191 LZ4HC_Insert(hc4, ip);