• Home
  • Raw
  • Download

Lines Matching refs:hc4

97 static void LZ4HC_init (LZ4HC_CCtx_internal* hc4, const BYTE* start)  in LZ4HC_init()  argument
99 MEM_INIT((void*)hc4->hashTable, 0, sizeof(hc4->hashTable)); in LZ4HC_init()
100 MEM_INIT(hc4->chainTable, 0xFF, sizeof(hc4->chainTable)); in LZ4HC_init()
101 hc4->nextToUpdate = 64 KB; in LZ4HC_init()
102 hc4->base = start - 64 KB; in LZ4HC_init()
103 hc4->end = start; in LZ4HC_init()
104 hc4->dictBase = start - 64 KB; in LZ4HC_init()
105 hc4->dictLimit = 64 KB; in LZ4HC_init()
106 hc4->lowLimit = 64 KB; in LZ4HC_init()
111 FORCE_INLINE void LZ4HC_Insert (LZ4HC_CCtx_internal* hc4, const BYTE* ip) in LZ4HC_Insert() argument
113 U16* const chainTable = hc4->chainTable; in LZ4HC_Insert()
114 U32* const hashTable = hc4->hashTable; in LZ4HC_Insert()
115 const BYTE* const base = hc4->base; in LZ4HC_Insert()
117 U32 idx = hc4->nextToUpdate; in LZ4HC_Insert()
128 hc4->nextToUpdate = target; in LZ4HC_Insert()
132 FORCE_INLINE int LZ4HC_InsertAndFindBestMatch (LZ4HC_CCtx_internal* hc4, /* Index table will be u… in LZ4HC_InsertAndFindBestMatch() argument
137 U16* const chainTable = hc4->chainTable; in LZ4HC_InsertAndFindBestMatch()
138 U32* const HashTable = hc4->hashTable; in LZ4HC_InsertAndFindBestMatch()
139 const BYTE* const base = hc4->base; in LZ4HC_InsertAndFindBestMatch()
140 const BYTE* const dictBase = hc4->dictBase; in LZ4HC_InsertAndFindBestMatch()
141 const U32 dictLimit = hc4->dictLimit; in LZ4HC_InsertAndFindBestMatch()
142 …const U32 lowLimit = (hc4->lowLimit + 64 KB > (U32)(ip-base)) ? hc4->lowLimit : (U32)(ip - base) -… in LZ4HC_InsertAndFindBestMatch()
148 LZ4HC_Insert(hc4, ip); in LZ4HC_InsertAndFindBestMatch()
181 LZ4HC_CCtx_internal* hc4, in LZ4HC_InsertAndGetWiderMatch() argument
190 U16* const chainTable = hc4->chainTable; in LZ4HC_InsertAndGetWiderMatch()
191 U32* const HashTable = hc4->hashTable; in LZ4HC_InsertAndGetWiderMatch()
192 const BYTE* const base = hc4->base; in LZ4HC_InsertAndGetWiderMatch()
193 const U32 dictLimit = hc4->dictLimit; in LZ4HC_InsertAndGetWiderMatch()
195 …const U32 lowLimit = (hc4->lowLimit + 64 KB > (U32)(ip-base)) ? hc4->lowLimit : (U32)(ip - base) -… in LZ4HC_InsertAndGetWiderMatch()
196 const BYTE* const dictBase = hc4->dictBase; in LZ4HC_InsertAndGetWiderMatch()
203 LZ4HC_Insert(hc4, ip); in LZ4HC_InsertAndGetWiderMatch()
696 LZ4_streamHC_t* hc4 = (LZ4_streamHC_t*)ALLOCATOR(1, sizeof(LZ4_streamHC_t)); in LZ4_createHC() local
697 if (hc4 == NULL) return NULL; /* not enough memory */ in LZ4_createHC()
698 LZ4HC_init (&hc4->internal_donotuse, (const BYTE*)inputBuffer); in LZ4_createHC()
699 hc4->internal_donotuse.inputBuffer = (BYTE*)inputBuffer; in LZ4_createHC()
700 return hc4; in LZ4_createHC()
717 LZ4HC_CCtx_internal* const hc4 = &((LZ4_streamHC_t*)LZ4HC_Data)->internal_donotuse; in LZ4_slideInputBufferHC() local
718 …int const dictSize = LZ4_saveDictHC((LZ4_streamHC_t*)LZ4HC_Data, (char*)(hc4->inputBuffer), 64 KB); in LZ4_slideInputBufferHC()
719 return (char*)(hc4->inputBuffer + dictSize); in LZ4_slideInputBufferHC()