Lines Matching defs:historySize
197 in important case where (dataSize <= historySize)
280 static UInt32 GetBlockSize(CMatchFinder *p, UInt32 historySize)
284 if (historySize > kMaxHistorySize)
287 // printf("\nhistorySize == 0x%x\n", historySize);
289 if (p->keepSizeBefore < historySize || blockSize < p->keepSizeBefore) // if 32-bit overflow
314 // input is historySize
340 // input is historySize
370 int MatchFinder_Create(CMatchFinder *p, UInt32 historySize,
377 p->keepSizeBefore = historySize + keepAddBufferBefore + 1;
388 if (p->directInput || LzInWindow_Create2(p, GetBlockSize(p, historySize), alloc))
412 const UInt32 hs2 = MatchFinder_GetHashMask2(p, historySize);
417 if (p->expectedDataSize < historySize)
426 hs = MatchFinder_GetHashMask(p, historySize);
428 if (p->expectedDataSize < historySize)
457 const UInt32 newCyclicBufferSize = historySize + 1; // do not change it
458 p->historySize = historySize;
459 p->cyclicBufferSize = newCyclicBufferSize; // it must be = (historySize + 1)
846 /* after normalization we need (p->pos >= p->historySize + 1); */
849 const UInt32 subValue = (p->pos - p->historySize - 1) /* & ~(UInt32)(kNormalizeAlign - 1) */;