Lines Matching refs:U32
20 U32* const hashTable = ms->hashTable;
21 U32 const hBits = cParams->hashLog;
22 U32 const mls = cParams->minMatch;
26 const U32 fastHashFillStep = 3;
32 U32 const curr = (U32)(ip - base);
37 { U32 p;
94 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
96 U32 const mls, U32 const hasStep)
99 U32* const hashTable = ms->hashTable;
100 U32 const hlog = cParams->hashLog;
105 const U32 endIndex = (U32)((size_t)(istart - base) + srcSize);
106 const U32 prefixStartIndex = ZSTD_getLowestPrefixIndex(ms, endIndex, cParams->windowLog);
116 U32 current0;
118 U32 rep_offset1 = rep[0];
119 U32 rep_offset2 = rep[1];
120 U32 offsetSaved = 0;
124 U32 idx; /* match idx for ip0 */
125 U32 mval; /* src value at match idx */
127 U32 offcode;
141 { U32 const curr = (U32)(ip0 - base);
142 U32 const windowLow = ZSTD_getLowestPrefixIndex(ms, curr, cParams->windowLog);
143 U32 const maxRep = curr - windowLow;
170 const U32 rval = MEM_read32(ip2 - rep_offset1);
173 current0 = (U32)(ip0 - base);
214 current0 = (U32)(ip0 - base);
269 rep_offset1 = (U32)(ip0-match0);
292 hashTable[hash1] = (U32)(ip1 - base);
300 hashTable[ZSTD_hashPtr(ip0-2, hlog, mls)] = (U32)(ip0-2-base);
306 { U32 const tmpOff = rep_offset2; rep_offset2 = rep_offset1; rep_offset1 = tmpOff; } /* swap rep_offset2 <=> rep_offset1 */
307 hashTable[ZSTD_hashPtr(ip0, hlog, mls)] = (U32)(ip0-base);
319 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], \
336 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
339 U32 const mls = ms->cParams.minMatch;
373 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
374 void const* src, size_t srcSize, U32 const mls, U32 const hasStep)
377 U32* const hashTable = ms->hashTable;
378 U32 const hlog = cParams->hashLog;
380 U32 const stepSize = cParams->targetLength + !(cParams->targetLength);
385 const U32 prefixStartIndex = ms->window.dictLimit;
389 U32 offset_1=rep[0], offset_2=rep[1];
390 U32 offsetSaved = 0;
394 const U32* const dictHashTable = dms->hashTable;
395 const U32 dictStartIndex = dms->window.dictLimit;
399 const U32 dictIndexDelta = prefixStartIndex - (U32)(dictEnd - dictBase);
400 const U32 dictAndPrefixLength = (U32)(ip - prefixStart + dictEnd - dictStart);
401 const U32 dictHLog = dictCParams->hashLog;
405 const U32 maxDistance = 1U << cParams->windowLog;
406 const U32 endIndex = (U32)((size_t)(ip - base) + srcSize);
414 assert(prefixStartIndex >= (U32)(dictEnd - dictBase));
428 U32 const curr = (U32)(ip-base);
429 U32 const matchIndex = hashTable[h];
431 const U32 repIndex = curr + 1 - offset_1;
437 if ( ((U32)((prefixStartIndex-1) - repIndex) >= 3) /* intentional underflow : ensure repIndex isn't overlapping dict + prefix */
445 U32 const dictMatchIndex = dictHashTable[dictHash];
454 U32 const offset = (U32)(curr-dictMatchIndex-dictIndexDelta);
471 U32 const offset = (U32)(ip-match);
488 hashTable[ZSTD_hashPtr(ip-2, hlog, mls)] = (U32)(ip-2-base);
492 U32 const current2 = (U32)(ip-base);
493 U32 const repIndex2 = current2 - offset_2;
497 if ( ((U32)((prefixStartIndex-1) - (U32)repIndex2) >= 3 /* intentional overflow */)
501 U32 tmpOffset = offset_2; offset_2 = offset_1; offset_1 = tmpOffset; /* swap offset_2 <=> offset_1 */
528 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
531 U32 const mls = ms->cParams.minMatch;
549 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
550 void const* src, size_t srcSize, U32 const mls, U32 const hasStep)
553 U32* const hashTable = ms->hashTable;
554 U32 const hlog = cParams->hashLog;
556 U32 const stepSize = cParams->targetLength + !(cParams->targetLength);
562 const U32 endIndex = (U32)((size_t)(istart - base) + srcSize);
563 const U32 lowLimit = ZSTD_getLowestMatchIndex(ms, endIndex, cParams->windowLog);
564 const U32 dictStartIndex = lowLimit;
566 const U32 dictLimit = ms->window.dictLimit;
567 const U32 prefixStartIndex = dictLimit < lowLimit ? lowLimit : dictLimit;
572 U32 offset_1=rep[0], offset_2=rep[1];
585 const U32 matchIndex = hashTable[h];
588 const U32 curr = (U32)(ip-base);
589 const U32 repIndex = curr + 1 - offset_1;
595 if ( ( ((U32)((prefixStartIndex-1) - repIndex) >= 3) /* intentional underflow */
613 U32 const offset = curr - matchIndex;
625 hashTable[ZSTD_hashPtr(ip-2, hlog, mls)] = (U32)(ip-2-base);
628 U32 const current2 = (U32)(ip-base);
629 U32 const repIndex2 = current2 - offset_2;
631 if ( (((U32)((prefixStartIndex-1) - repIndex2) >= 3) & (offset_2 <= curr - dictStartIndex)) /* intentional overflow */
635 { U32 const tmpOffset = offset_2; offset_2 = offset_1; offset_1 = tmpOffset; } /* swap offset_2 <=> offset_1 */
659 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
662 U32 const mls = ms->cParams.minMatch;