• Home
  • Raw
  • Download

Lines Matching refs:UInt32

12 #define kMaxValForNormalize ((UInt32)0xFFFFFFFF)
14 #define kNormalizeMask (~(UInt32)(kNormalizeStepMin - 1))
15 #define kMaxHistorySize ((UInt32)7 << 29)
30 static int LzInWindow_Create(CMatchFinder *p, UInt32 keepSizeReserv, ISzAllocPtr alloc) in LzInWindow_Create()
32 UInt32 blockSize = p->keepSizeBefore + p->keepSizeAfter + keepSizeReserv; in LzInWindow_Create()
49 UInt32 MatchFinder_GetNumAvailableBytes(CMatchFinder *p) { return p->streamPos - p->pos; } in MatchFinder_GetNumAvailableBytes()
51 void MatchFinder_ReduceOffsets(CMatchFinder *p, UInt32 subValue) in MatchFinder_ReduceOffsets()
67 UInt32 curSize = 0xFFFFFFFF - (p->streamPos - p->pos); in MatchFinder_ReadBlock()
69 curSize = (UInt32)p->directInputRem; in MatchFinder_ReadBlock()
92 p->streamPos += (UInt32)size; in MatchFinder_ReadBlock()
150 UInt32 r = (UInt32)i; in MatchFinder_Construct()
153 r = (r >> 1) ^ (kCrcPoly & ((UInt32)0 - (r & 1))); in MatchFinder_Construct()
178 int MatchFinder_Create(CMatchFinder *p, UInt32 historySize, in MatchFinder_Create()
179 UInt32 keepAddBufferBefore, UInt32 matchMaxLen, UInt32 keepAddBufferAfter, in MatchFinder_Create()
182 UInt32 sizeReserv; in MatchFinder_Create()
191 if (historySize >= ((UInt32)3 << 30)) sizeReserv = historySize >> 3; in MatchFinder_Create()
192 else if (historySize >= ((UInt32)2 << 30)) sizeReserv = historySize >> 2; in MatchFinder_Create()
203 UInt32 newCyclicBufferSize = historySize + 1; in MatchFinder_Create()
204 UInt32 hs; in MatchFinder_Create()
214 hs = (UInt32)p->expectedDataSize; in MatchFinder_Create()
273 UInt32 limit = kMaxValForNormalize - p->pos; in MatchFinder_SetLimits()
274 UInt32 limit2 = p->cyclicBufferSize - p->cyclicBufferPos; in MatchFinder_SetLimits()
292 UInt32 lenLimit = p->streamPos - p->pos; in MatchFinder_SetLimits()
345 static UInt32 MatchFinder_GetSubValue(CMatchFinder *p) in MatchFinder_GetSubValue()
350 void MatchFinder_Normalize3(UInt32 subValue, CLzRef *items, size_t numItems) in MatchFinder_Normalize3()
355 UInt32 value = items[i]; in MatchFinder_Normalize3()
366 UInt32 subValue = MatchFinder_GetSubValue(p); in MatchFinder_Normalize()
389 static UInt32 * Hc_GetMatchesSpec(unsigned lenLimit, UInt32 curMatch, UInt32 pos, const Byte *cur, … in Hc_GetMatchesSpec()
390 UInt32 _cyclicBufferPos, UInt32 _cyclicBufferSize, UInt32 cutValue, in Hc_GetMatchesSpec()
391 UInt32 *distances, unsigned maxLen) in Hc_GetMatchesSpec()
426 UInt32 delta = pos - curMatch; in Hc_GetMatchesSpec()
440 distances[0] = (UInt32)(lim - cur); in Hc_GetMatchesSpec()
450 distances[0] = (UInt32)len; in Hc_GetMatchesSpec()
465 UInt32 * GetMatchesSpec1(UInt32 lenLimit, UInt32 curMatch, UInt32 pos, const Byte *cur, CLzRef *son, in GetMatchesSpec1()
466 UInt32 _cyclicBufferPos, UInt32 _cyclicBufferSize, UInt32 cutValue, in GetMatchesSpec1()
467 UInt32 *distances, UInt32 maxLen) in GetMatchesSpec1()
474 UInt32 delta = pos - curMatch; in GetMatchesSpec1()
484 UInt32 pair0 = pair[0]; in GetMatchesSpec1()
493 maxLen = (UInt32)len; in GetMatchesSpec1()
494 *distances++ = (UInt32)len; in GetMatchesSpec1()
522 static void SkipMatchesSpec(UInt32 lenLimit, UInt32 curMatch, UInt32 pos, const Byte *cur, CLzRef *… in SkipMatchesSpec()
523 UInt32 _cyclicBufferPos, UInt32 _cyclicBufferSize, UInt32 cutValue) in SkipMatchesSpec()
530 UInt32 delta = pos - curMatch; in SkipMatchesSpec()
577 #define MOVE_POS_RET MOVE_POS return (UInt32)offset;
582 unsigned lenLimit; UInt32 hv; const Byte *cur; UInt32 curMatch; \
592 offset = (unsigned)(GetMatchesSpec1((UInt32)lenLimit, curMatch, MF_PARAMS(p), \
593 distances + offset, (UInt32)maxLen) - distances); MOVE_POS_RET;
596 SkipMatchesSpec((UInt32)lenLimit, curMatch, MF_PARAMS(p)); MOVE_POS;
605 static UInt32 Bt2_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances) in Bt2_MatchFinder_GetMatches()
616 UInt32 Bt3Zip_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances) in Bt3Zip_MatchFinder_GetMatches()
627 static UInt32 Bt3_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances) in Bt3_MatchFinder_GetMatches()
629 UInt32 h2, d2, pos; in Bt3_MatchFinder_GetMatches()
631 UInt32 *hash; in Bt3_MatchFinder_GetMatches()
652 distances[0] = (UInt32)maxLen; in Bt3_MatchFinder_GetMatches()
657 SkipMatchesSpec((UInt32)lenLimit, curMatch, MF_PARAMS(p)); in Bt3_MatchFinder_GetMatches()
665 static UInt32 Bt4_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances) in Bt4_MatchFinder_GetMatches()
667 UInt32 h2, h3, d2, d3, pos; in Bt4_MatchFinder_GetMatches()
669 UInt32 *hash; in Bt4_MatchFinder_GetMatches()
708 distances[(size_t)offset - 2] = (UInt32)maxLen; in Bt4_MatchFinder_GetMatches()
711 SkipMatchesSpec((UInt32)lenLimit, curMatch, MF_PARAMS(p)); in Bt4_MatchFinder_GetMatches()
799 static UInt32 Hc4_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances) in Hc4_MatchFinder_GetMatches()
801 UInt32 h2, h3, d2, d3, pos; in Hc4_MatchFinder_GetMatches()
803 UInt32 *hash; in Hc4_MatchFinder_GetMatches()
841 distances[(size_t)offset - 2] = (UInt32)maxLen; in Hc4_MatchFinder_GetMatches()
936 UInt32 Hc3Zip_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances) in Hc3Zip_MatchFinder_GetMatches()
948 static void Bt2_MatchFinder_Skip(CMatchFinder *p, UInt32 num) in Bt2_MatchFinder_Skip()
961 void Bt3Zip_MatchFinder_Skip(CMatchFinder *p, UInt32 num) in Bt3Zip_MatchFinder_Skip()
974 static void Bt3_MatchFinder_Skip(CMatchFinder *p, UInt32 num) in Bt3_MatchFinder_Skip()
978 UInt32 h2; in Bt3_MatchFinder_Skip()
979 UInt32 *hash; in Bt3_MatchFinder_Skip()
991 static void Bt4_MatchFinder_Skip(CMatchFinder *p, UInt32 num) in Bt4_MatchFinder_Skip()
995 UInt32 h2, h3; in Bt4_MatchFinder_Skip()
996 UInt32 *hash; in Bt4_MatchFinder_Skip()
1030 static void Hc4_MatchFinder_Skip(CMatchFinder *p, UInt32 num) in Hc4_MatchFinder_Skip()
1034 UInt32 h2, h3; in Hc4_MatchFinder_Skip()
1035 UInt32 *hash; in Hc4_MatchFinder_Skip()
1071 void Hc3Zip_MatchFinder_Skip(CMatchFinder *p, UInt32 num) in Hc3Zip_MatchFinder_Skip()