• Home
  • Raw
  • Download

Lines Matching refs:WNDSIZ

35 #define WNDSIZ            (1U << WNDBIT)  macro
41 #define MAX_HASH_VAL (3 * WNDSIZ + (WNDSIZ / 512 + 1) * UINT8_MAX)
42 #define HASH(LoopVar7, LoopVar5) ((LoopVar7) + ((LoopVar5) << (WNDBIT - 9)) + WNDSIZ * 2)
191 mText = AllocateZeroPool (WNDSIZ * 2 + MAXMATCH); in AllocateMemory()
192 mLevel = AllocateZeroPool ((WNDSIZ + UINT8_MAX + 1) * sizeof (*mLevel)); in AllocateMemory()
193 mChildCount = AllocateZeroPool ((WNDSIZ + UINT8_MAX + 1) * sizeof (*mChildCount)); in AllocateMemory()
194 mPosition = AllocateZeroPool ((WNDSIZ + UINT8_MAX + 1) * sizeof (*mPosition)); in AllocateMemory()
195 mParent = AllocateZeroPool (WNDSIZ * 2 * sizeof (*mParent)); in AllocateMemory()
196 mPrev = AllocateZeroPool (WNDSIZ * 2 * sizeof (*mPrev)); in AllocateMemory()
244 SetMem (mLevel + WNDSIZ, (UINT8_MAX + 1) * sizeof (UINT8), 1); in InitSlide()
245 SetMem (mPosition + WNDSIZ, (UINT8_MAX + 1) * sizeof (NODE), 0); in InitSlide()
247 SetMem (mParent + WNDSIZ, WNDSIZ * sizeof (NODE), 0); in InitSlide()
250 for (LoopVar1 = 1; LoopVar1 < WNDSIZ - 1; LoopVar1++) { in InitSlide()
254 mNext[WNDSIZ - 1] = NIL; in InitSlide()
255 SetMem (mNext + WNDSIZ * 2, (MAX_HASH_VAL - WNDSIZ * 2 + 1) * sizeof (NODE), 0); in InitSlide()
372 LoopVar4 = (NODE) ((mMatchPos + 1) | WNDSIZ); in InsertNode()
390 if (LoopVar10 < WNDSIZ) { in InsertNode()
397 LoopVar6 = (NODE) (mText[mPos] + WNDSIZ); in InsertNode()
414 if (LoopVar4 >= WNDSIZ) { in InsertNode()
423 mMatchPos -= WNDSIZ; in InsertNode()
500 if (LoopVar4 >= WNDSIZ) { in DeleteNode()
511 LoopVar10 -= WNDSIZ; in DeleteNode()
520 LoopVar9 -= WNDSIZ; in DeleteNode()
527 mPosition[LoopVar6] = (NODE) (LoopVar11 | WNDSIZ); in DeleteNode()
532 if (LoopVar6 < WNDSIZ) { in DeleteNode()
534 LoopVar9 -= WNDSIZ; in DeleteNode()
541 mPosition[LoopVar6] = (NODE) (LoopVar11 | WNDSIZ | PERC_FLAG); in DeleteNode()
611 if (mPos == WNDSIZ * 2) { in GetNextMatch()
612 Temp = AllocateZeroPool (WNDSIZ + MAXMATCH); in GetNextMatch()
616 CopyMem (Temp, &mText[WNDSIZ], WNDSIZ + MAXMATCH); in GetNextMatch()
617 CopyMem (&mText[0], Temp, WNDSIZ + MAXMATCH); in GetNextMatch()
619 LoopVar8 = FreadCrc (&mText[WNDSIZ + MAXMATCH], WNDSIZ); in GetNextMatch()
621 mPos = WNDSIZ; in GetNextMatch()
1255 mRemainder = FreadCrc (&mText[WNDSIZ], WNDSIZ + MAXMATCH); in Encode()
1258 mPos = WNDSIZ; in Encode()
1286 (mPos - LastMatchPos - 2) & (WNDSIZ - 1)); in Encode()