Lines Matching refs:U32

19     U32* const hashLarge = ms->hashTable;  in ZSTD_fillDoubleHashTable()
20 U32 const hBitsL = cParams->hashLog; in ZSTD_fillDoubleHashTable()
21 U32 const mls = cParams->minMatch; in ZSTD_fillDoubleHashTable()
22 U32* const hashSmall = ms->chainTable; in ZSTD_fillDoubleHashTable()
23 U32 const hBitsS = cParams->chainLog; in ZSTD_fillDoubleHashTable()
27 const U32 fastHashFillStep = 3; in ZSTD_fillDoubleHashTable()
34 U32 const curr = (U32)(ip - base); in ZSTD_fillDoubleHashTable()
35 U32 i; in ZSTD_fillDoubleHashTable()
52 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_doubleFast_generic()
54 U32 const mls /* template */, ZSTD_dictMode_e const dictMode) in ZSTD_compressBlock_doubleFast_generic()
57 U32* const hashLong = ms->hashTable; in ZSTD_compressBlock_doubleFast_generic()
58 const U32 hBitsL = cParams->hashLog; in ZSTD_compressBlock_doubleFast_generic()
59 U32* const hashSmall = ms->chainTable; in ZSTD_compressBlock_doubleFast_generic()
60 const U32 hBitsS = cParams->chainLog; in ZSTD_compressBlock_doubleFast_generic()
65 const U32 endIndex = (U32)((size_t)(istart - base) + srcSize); in ZSTD_compressBlock_doubleFast_generic()
67 const U32 prefixLowestIndex = ZSTD_getLowestPrefixIndex(ms, endIndex, cParams->windowLog); in ZSTD_compressBlock_doubleFast_generic()
71 U32 offset_1=rep[0], offset_2=rep[1]; in ZSTD_compressBlock_doubleFast_generic()
72 U32 offsetSaved = 0; in ZSTD_compressBlock_doubleFast_generic()
78 const U32* const dictHashLong = dictMode == ZSTD_dictMatchState ? in ZSTD_compressBlock_doubleFast_generic()
80 const U32* const dictHashSmall = dictMode == ZSTD_dictMatchState ? in ZSTD_compressBlock_doubleFast_generic()
82 const U32 dictStartIndex = dictMode == ZSTD_dictMatchState ? in ZSTD_compressBlock_doubleFast_generic()
90 const U32 dictIndexDelta = dictMode == ZSTD_dictMatchState ? in ZSTD_compressBlock_doubleFast_generic()
91 prefixLowestIndex - (U32)(dictEnd - dictBase) : in ZSTD_compressBlock_doubleFast_generic()
93 const U32 dictHBitsL = dictMode == ZSTD_dictMatchState ? in ZSTD_compressBlock_doubleFast_generic()
95 const U32 dictHBitsS = dictMode == ZSTD_dictMatchState ? in ZSTD_compressBlock_doubleFast_generic()
97 const U32 dictAndPrefixLength = (U32)((ip - prefixLowest) + (dictEnd - dictStart)); in ZSTD_compressBlock_doubleFast_generic()
111 U32 const curr = (U32)(ip - base); in ZSTD_compressBlock_doubleFast_generic()
112 U32 const windowLow = ZSTD_getLowestPrefixIndex(ms, curr, cParams->windowLog); in ZSTD_compressBlock_doubleFast_generic()
113 U32 const maxRep = curr - windowLow; in ZSTD_compressBlock_doubleFast_generic()
127 U32 offset; in ZSTD_compressBlock_doubleFast_generic()
132 U32 const curr = (U32)(ip-base); in ZSTD_compressBlock_doubleFast_generic()
133 U32 const matchIndexL = hashLong[h2]; in ZSTD_compressBlock_doubleFast_generic()
134 U32 matchIndexS = hashSmall[h]; in ZSTD_compressBlock_doubleFast_generic()
137 const U32 repIndex = curr + 1 - offset_1; in ZSTD_compressBlock_doubleFast_generic()
146 && ((U32)((prefixLowestIndex-1) - repIndex) >= 3 /* intentional underflow */) in ZSTD_compressBlock_doubleFast_generic()
168 offset = (U32)(ip-matchLong); in ZSTD_compressBlock_doubleFast_generic()
174 U32 const dictMatchIndexL = dictHashLong[dictHL]; in ZSTD_compressBlock_doubleFast_generic()
180 offset = (U32)(curr - dictMatchIndexL - dictIndexDelta); in ZSTD_compressBlock_doubleFast_generic()
192 U32 const dictMatchIndexS = dictHashSmall[dictHS]; in ZSTD_compressBlock_doubleFast_generic()
210 U32 const matchIndexL3 = hashLong[hl3]; in ZSTD_compressBlock_doubleFast_generic()
219 offset = (U32)(ip-matchL3); in ZSTD_compressBlock_doubleFast_generic()
225 U32 const dictMatchIndexL3 = dictHashLong[dictHLNext]; in ZSTD_compressBlock_doubleFast_generic()
231 offset = (U32)(curr + 1 - dictMatchIndexL3 - dictIndexDelta); in ZSTD_compressBlock_doubleFast_generic()
239 offset = (U32)(curr - matchIndexS); in ZSTD_compressBlock_doubleFast_generic()
243 offset = (U32)(ip - match); in ZSTD_compressBlock_doubleFast_generic()
261 { U32 const indexToInsert = curr+2; in ZSTD_compressBlock_doubleFast_generic()
263 hashLong[ZSTD_hashPtr(ip-2, hBitsL, 8)] = (U32)(ip-2-base); in ZSTD_compressBlock_doubleFast_generic()
265 hashSmall[ZSTD_hashPtr(ip-1, hBitsS, mls)] = (U32)(ip-1-base); in ZSTD_compressBlock_doubleFast_generic()
271 U32 const current2 = (U32)(ip-base); in ZSTD_compressBlock_doubleFast_generic()
272 U32 const repIndex2 = current2 - offset_2; in ZSTD_compressBlock_doubleFast_generic()
277 … if ( ((U32)((prefixLowestIndex-1) - (U32)repIndex2) >= 3 /* intentional overflow */) in ZSTD_compressBlock_doubleFast_generic()
281U32 tmpOffset = offset_2; offset_2 = offset_1; offset_1 = tmpOffset; /* swap offset_2 <=> offset… in ZSTD_compressBlock_doubleFast_generic()
298U32 const tmpOff = offset_2; offset_2 = offset_1; offset_1 = tmpOff; /* swap offset_2 <=> offset_… in ZSTD_compressBlock_doubleFast_generic()
299 hashSmall[ZSTD_hashPtr(ip, hBitsS, mls)] = (U32)(ip-base); in ZSTD_compressBlock_doubleFast_generic()
300 hashLong[ZSTD_hashPtr(ip, hBitsL, 8)] = (U32)(ip-base); in ZSTD_compressBlock_doubleFast_generic()
318 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_doubleFast()
321 const U32 mls = ms->cParams.minMatch; in ZSTD_compressBlock_doubleFast()
338 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_doubleFast_dictMatchState()
341 const U32 mls = ms->cParams.minMatch; in ZSTD_compressBlock_doubleFast_dictMatchState()
358 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_doubleFast_extDict_generic()
360 U32 const mls /* template */) in ZSTD_compressBlock_doubleFast_extDict_generic()
363 U32* const hashLong = ms->hashTable; in ZSTD_compressBlock_doubleFast_extDict_generic()
364 U32 const hBitsL = cParams->hashLog; in ZSTD_compressBlock_doubleFast_extDict_generic()
365 U32* const hashSmall = ms->chainTable; in ZSTD_compressBlock_doubleFast_extDict_generic()
366 U32 const hBitsS = cParams->chainLog; in ZSTD_compressBlock_doubleFast_extDict_generic()
373 const U32 endIndex = (U32)((size_t)(istart - base) + srcSize); in ZSTD_compressBlock_doubleFast_extDict_generic()
374 const U32 lowLimit = ZSTD_getLowestMatchIndex(ms, endIndex, cParams->windowLog); in ZSTD_compressBlock_doubleFast_extDict_generic()
375 const U32 dictStartIndex = lowLimit; in ZSTD_compressBlock_doubleFast_extDict_generic()
376 const U32 dictLimit = ms->window.dictLimit; in ZSTD_compressBlock_doubleFast_extDict_generic()
377 const U32 prefixStartIndex = (dictLimit > lowLimit) ? dictLimit : lowLimit; in ZSTD_compressBlock_doubleFast_extDict_generic()
382 U32 offset_1=rep[0], offset_2=rep[1]; in ZSTD_compressBlock_doubleFast_extDict_generic()
393 const U32 matchIndex = hashSmall[hSmall]; in ZSTD_compressBlock_doubleFast_extDict_generic()
398 const U32 matchLongIndex = hashLong[hLong]; in ZSTD_compressBlock_doubleFast_extDict_generic()
402 const U32 curr = (U32)(ip-base); in ZSTD_compressBlock_doubleFast_extDict_generic()
403 const U32 repIndex = curr + 1 - offset_1; /* offset_1 expected <= curr +1 */ in ZSTD_compressBlock_doubleFast_extDict_generic()
409 …if ((((U32)((prefixStartIndex-1) - repIndex) >= 3) /* intentional underflow : ensure repIndex does… in ZSTD_compressBlock_doubleFast_extDict_generic()
420 U32 offset; in ZSTD_compressBlock_doubleFast_extDict_generic()
430 U32 const matchIndex3 = hashLong[h3]; in ZSTD_compressBlock_doubleFast_extDict_generic()
433 U32 offset; in ZSTD_compressBlock_doubleFast_extDict_generic()
465 { U32 const indexToInsert = curr+2; in ZSTD_compressBlock_doubleFast_extDict_generic()
467 hashLong[ZSTD_hashPtr(ip-2, hBitsL, 8)] = (U32)(ip-2-base); in ZSTD_compressBlock_doubleFast_extDict_generic()
469 hashSmall[ZSTD_hashPtr(ip-1, hBitsS, mls)] = (U32)(ip-1-base); in ZSTD_compressBlock_doubleFast_extDict_generic()
474 U32 const current2 = (U32)(ip-base); in ZSTD_compressBlock_doubleFast_extDict_generic()
475 U32 const repIndex2 = current2 - offset_2; in ZSTD_compressBlock_doubleFast_extDict_generic()
477 …if ( (((U32)((prefixStartIndex-1) - repIndex2) >= 3) /* intentional overflow : ensure repIndex2 … in ZSTD_compressBlock_doubleFast_extDict_generic()
482U32 const tmpOffset = offset_2; offset_2 = offset_1; offset_1 = tmpOffset; /* swap offset_2 <=> … in ZSTD_compressBlock_doubleFast_extDict_generic()
503 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_doubleFast_extDict()
506 U32 const mls = ms->cParams.minMatch; in ZSTD_compressBlock_doubleFast_extDict()