Lines Matching refs:U32
20 U32* const hashTable = ms->hashTable; in ZSTD_fillHashTable()
21 U32 const hBits = cParams->hashLog; in ZSTD_fillHashTable()
22 U32 const mls = cParams->minMatch; in ZSTD_fillHashTable()
26 const U32 fastHashFillStep = 3; in ZSTD_fillHashTable()
32 U32 const curr = (U32)(ip - base); in ZSTD_fillHashTable()
37 { U32 p; in ZSTD_fillHashTable()
48 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_fast_generic()
50 U32 const mls) in ZSTD_compressBlock_fast_generic()
53 U32* const hashTable = ms->hashTable; in ZSTD_compressBlock_fast_generic()
54 U32 const hlog = cParams->hashLog; in ZSTD_compressBlock_fast_generic()
63 const U32 endIndex = (U32)((size_t)(istart - base) + srcSize); in ZSTD_compressBlock_fast_generic()
64 const U32 prefixStartIndex = ZSTD_getLowestPrefixIndex(ms, endIndex, cParams->windowLog); in ZSTD_compressBlock_fast_generic()
68 U32 offset_1=rep[0], offset_2=rep[1]; in ZSTD_compressBlock_fast_generic()
69 U32 offsetSaved = 0; in ZSTD_compressBlock_fast_generic()
75 { U32 const curr = (U32)(ip0 - base); in ZSTD_compressBlock_fast_generic()
76 U32 const windowLow = ZSTD_getLowestPrefixIndex(ms, curr, cParams->windowLog); in ZSTD_compressBlock_fast_generic()
77 U32 const maxRep = curr - windowLow; in ZSTD_compressBlock_fast_generic()
94 U32 const val0 = MEM_read32(ip0); in ZSTD_compressBlock_fast_generic()
96 U32 const val1 = MEM_read32(ip1); in ZSTD_compressBlock_fast_generic()
97 U32 const current0 = (U32)(ip0-base); in ZSTD_compressBlock_fast_generic()
98 U32 const current1 = (U32)(ip1-base); in ZSTD_compressBlock_fast_generic()
99 U32 const matchIndex0 = hashTable[h0]; in ZSTD_compressBlock_fast_generic()
100 U32 const matchIndex1 = hashTable[h1]; in ZSTD_compressBlock_fast_generic()
104 U32 offcode; in ZSTD_compressBlock_fast_generic()
142 offset_1 = (U32)(ip0-match0); in ZSTD_compressBlock_fast_generic()
161 hashTable[ZSTD_hashPtr(ip0-2, hlog, mls)] = (U32)(ip0-2-base); in ZSTD_compressBlock_fast_generic()
167 …{ U32 const tmpOff = offset_2; offset_2 = offset_1; offset_1 = tmpOff; } /* swap offset_2 <=> offs… in ZSTD_compressBlock_fast_generic()
168 hashTable[ZSTD_hashPtr(ip0, hlog, mls)] = (U32)(ip0-base); in ZSTD_compressBlock_fast_generic()
187 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_fast()
190 U32 const mls = ms->cParams.minMatch; in ZSTD_compressBlock_fast()
208 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_fast_dictMatchState_generic()
209 void const* src, size_t srcSize, U32 const mls) in ZSTD_compressBlock_fast_dictMatchState_generic()
212 U32* const hashTable = ms->hashTable; in ZSTD_compressBlock_fast_dictMatchState_generic()
213 U32 const hlog = cParams->hashLog; in ZSTD_compressBlock_fast_dictMatchState_generic()
215 U32 const stepSize = cParams->targetLength + !(cParams->targetLength); in ZSTD_compressBlock_fast_dictMatchState_generic()
220 const U32 prefixStartIndex = ms->window.dictLimit; in ZSTD_compressBlock_fast_dictMatchState_generic()
224 U32 offset_1=rep[0], offset_2=rep[1]; in ZSTD_compressBlock_fast_dictMatchState_generic()
225 U32 offsetSaved = 0; in ZSTD_compressBlock_fast_dictMatchState_generic()
229 const U32* const dictHashTable = dms->hashTable; in ZSTD_compressBlock_fast_dictMatchState_generic()
230 const U32 dictStartIndex = dms->window.dictLimit; in ZSTD_compressBlock_fast_dictMatchState_generic()
234 const U32 dictIndexDelta = prefixStartIndex - (U32)(dictEnd - dictBase); in ZSTD_compressBlock_fast_dictMatchState_generic()
235 const U32 dictAndPrefixLength = (U32)(ip - prefixStart + dictEnd - dictStart); in ZSTD_compressBlock_fast_dictMatchState_generic()
236 const U32 dictHLog = dictCParams->hashLog; in ZSTD_compressBlock_fast_dictMatchState_generic()
240 const U32 maxDistance = 1U << cParams->windowLog; in ZSTD_compressBlock_fast_dictMatchState_generic()
241 const U32 endIndex = (U32)((size_t)(ip - base) + srcSize); in ZSTD_compressBlock_fast_dictMatchState_generic()
247 assert(prefixStartIndex >= (U32)(dictEnd - dictBase)); in ZSTD_compressBlock_fast_dictMatchState_generic()
261 U32 const curr = (U32)(ip-base); in ZSTD_compressBlock_fast_dictMatchState_generic()
262 U32 const matchIndex = hashTable[h]; in ZSTD_compressBlock_fast_dictMatchState_generic()
264 const U32 repIndex = curr + 1 - offset_1; in ZSTD_compressBlock_fast_dictMatchState_generic()
270 …if ( ((U32)((prefixStartIndex-1) - repIndex) >= 3) /* intentional underflow : ensure repIndex isn'… in ZSTD_compressBlock_fast_dictMatchState_generic()
278 U32 const dictMatchIndex = dictHashTable[dictHash]; in ZSTD_compressBlock_fast_dictMatchState_generic()
287 U32 const offset = (U32)(curr-dictMatchIndex-dictIndexDelta); in ZSTD_compressBlock_fast_dictMatchState_generic()
304 U32 const offset = (U32)(ip-match); in ZSTD_compressBlock_fast_dictMatchState_generic()
321 hashTable[ZSTD_hashPtr(ip-2, hlog, mls)] = (U32)(ip-2-base); in ZSTD_compressBlock_fast_dictMatchState_generic()
325 U32 const current2 = (U32)(ip-base); in ZSTD_compressBlock_fast_dictMatchState_generic()
326 U32 const repIndex2 = current2 - offset_2; in ZSTD_compressBlock_fast_dictMatchState_generic()
330 if ( ((U32)((prefixStartIndex-1) - (U32)repIndex2) >= 3 /* intentional overflow */) in ZSTD_compressBlock_fast_dictMatchState_generic()
334 …U32 tmpOffset = offset_2; offset_2 = offset_1; offset_1 = tmpOffset; /* swap offset_2 <=> offset… in ZSTD_compressBlock_fast_dictMatchState_generic()
355 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_fast_dictMatchState()
358 U32 const mls = ms->cParams.minMatch; in ZSTD_compressBlock_fast_dictMatchState()
376 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_fast_extDict_generic()
377 void const* src, size_t srcSize, U32 const mls) in ZSTD_compressBlock_fast_extDict_generic()
380 U32* const hashTable = ms->hashTable; in ZSTD_compressBlock_fast_extDict_generic()
381 U32 const hlog = cParams->hashLog; in ZSTD_compressBlock_fast_extDict_generic()
383 U32 const stepSize = cParams->targetLength + !(cParams->targetLength); in ZSTD_compressBlock_fast_extDict_generic()
389 const U32 endIndex = (U32)((size_t)(istart - base) + srcSize); in ZSTD_compressBlock_fast_extDict_generic()
390 const U32 lowLimit = ZSTD_getLowestMatchIndex(ms, endIndex, cParams->windowLog); in ZSTD_compressBlock_fast_extDict_generic()
391 const U32 dictStartIndex = lowLimit; in ZSTD_compressBlock_fast_extDict_generic()
393 const U32 dictLimit = ms->window.dictLimit; in ZSTD_compressBlock_fast_extDict_generic()
394 const U32 prefixStartIndex = dictLimit < lowLimit ? lowLimit : dictLimit; in ZSTD_compressBlock_fast_extDict_generic()
399 U32 offset_1=rep[0], offset_2=rep[1]; in ZSTD_compressBlock_fast_extDict_generic()
410 const U32 matchIndex = hashTable[h]; in ZSTD_compressBlock_fast_extDict_generic()
413 const U32 curr = (U32)(ip-base); in ZSTD_compressBlock_fast_extDict_generic()
414 const U32 repIndex = curr + 1 - offset_1; in ZSTD_compressBlock_fast_extDict_generic()
421 …if ( (((U32)((prefixStartIndex-1) - repIndex) >= 3) /* intentional underflow */ & (repIndex > dict… in ZSTD_compressBlock_fast_extDict_generic()
438 U32 const offset = curr - matchIndex; in ZSTD_compressBlock_fast_extDict_generic()
450 hashTable[ZSTD_hashPtr(ip-2, hlog, mls)] = (U32)(ip-2-base); in ZSTD_compressBlock_fast_extDict_generic()
453 U32 const current2 = (U32)(ip-base); in ZSTD_compressBlock_fast_extDict_generic()
454 U32 const repIndex2 = current2 - offset_2; in ZSTD_compressBlock_fast_extDict_generic()
456 …if ( (((U32)((prefixStartIndex-1) - repIndex2) >= 3) & (repIndex2 > dictStartIndex)) /* intention… in ZSTD_compressBlock_fast_extDict_generic()
460 …{ U32 const tmpOffset = offset_2; offset_2 = offset_1; offset_1 = tmpOffset; } /* swap offset_2 <… in ZSTD_compressBlock_fast_extDict_generic()
480 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_fast_extDict()
483 U32 const mls = ms->cParams.minMatch; in ZSTD_compressBlock_fast_extDict()