Lines Matching refs:WNDSIZ
36 #define WNDSIZ (1U << WNDBIT) macro
42 #define MAX_HASH_VAL (3 * WNDSIZ + (WNDSIZ / 512 + 1) * UINT8_MAX)
43 #define HASH(LoopVar7, LoopVar5) ((LoopVar7) + ((LoopVar5) << (WNDBIT - 9)) + WNDSIZ * 2)
196 mText = AllocateZeroPool (WNDSIZ * 2 + MAXMATCH); in AllocateMemory()
197 mLevel = AllocateZeroPool ((WNDSIZ + UINT8_MAX + 1) * sizeof (*mLevel)); in AllocateMemory()
198 mChildCount = AllocateZeroPool ((WNDSIZ + UINT8_MAX + 1) * sizeof (*mChildCount)); in AllocateMemory()
199 mPosition = AllocateZeroPool ((WNDSIZ + UINT8_MAX + 1) * sizeof (*mPosition)); in AllocateMemory()
200 mParent = AllocateZeroPool (WNDSIZ * 2 * sizeof (*mParent)); in AllocateMemory()
201 mPrev = AllocateZeroPool (WNDSIZ * 2 * sizeof (*mPrev)); in AllocateMemory()
251 SetMem (mLevel + WNDSIZ, (UINT8_MAX + 1) * sizeof (UINT8), 1); in InitSlide()
252 SetMem (mPosition + WNDSIZ, (UINT8_MAX + 1) * sizeof (NODE), 0); in InitSlide()
254 SetMem (mParent + WNDSIZ, WNDSIZ * sizeof (NODE), 0); in InitSlide()
257 for (LoopVar1 = 1; LoopVar1 < WNDSIZ - 1; LoopVar1++) { in InitSlide()
261 mNext[WNDSIZ - 1] = NIL; in InitSlide()
262 SetMem (mNext + WNDSIZ * 2, (MAX_HASH_VAL - WNDSIZ * 2 + 1) * sizeof (NODE), 0); in InitSlide()
383 LoopVar4 = (NODE) ((mMatchPos + 1) | WNDSIZ); in InsertNode()
401 if (LoopVar10 < WNDSIZ) { in InsertNode()
408 LoopVar6 = (NODE) (mText[mPos] + WNDSIZ); in InsertNode()
425 if (LoopVar4 >= WNDSIZ) { in InsertNode()
434 mMatchPos -= WNDSIZ; in InsertNode()
512 if (LoopVar4 >= WNDSIZ) { in DeleteNode()
523 LoopVar10 -= WNDSIZ; in DeleteNode()
532 LoopVar9 -= WNDSIZ; in DeleteNode()
539 mPosition[LoopVar6] = (NODE) (LoopVar11 | WNDSIZ); in DeleteNode()
544 if (LoopVar6 < WNDSIZ) { in DeleteNode()
546 LoopVar9 -= WNDSIZ; in DeleteNode()
553 mPosition[LoopVar6] = (NODE) (LoopVar11 | WNDSIZ | PERC_FLAG); in DeleteNode()
625 if (mPos == WNDSIZ * 2) { in GetNextMatch()
626 Temp = AllocateZeroPool (WNDSIZ + MAXMATCH); in GetNextMatch()
630 CopyMem (Temp, &mText[WNDSIZ], WNDSIZ + MAXMATCH); in GetNextMatch()
631 CopyMem (&mText[0], Temp, WNDSIZ + MAXMATCH); in GetNextMatch()
633 LoopVar8 = FreadCrc (&mText[WNDSIZ + MAXMATCH], WNDSIZ); in GetNextMatch()
635 mPos = WNDSIZ; in GetNextMatch()
1285 mRemainder = FreadCrc (&mText[WNDSIZ], WNDSIZ + MAXMATCH); in Encode()
1288 mPos = WNDSIZ; in Encode()
1316 (mPos - LastMatchPos - 2) & (WNDSIZ - 1)); in Encode()