Searched refs:matchIndex (Results 1 – 9 of 9) sorted by relevance
| /freebsd/sys/contrib/openzfs/module/zstd/lib/compress/ |
| H A D | zstd_lazy.c | 55 U32 const matchIndex = hashTable[h]; in ZSTD_updateDUBT() local 62 *nextCandidatePtr = matchIndex; /* update BT like a chain */ in ZSTD_updateDUBT() 95 …U32 matchIndex = *smallerPtr; /* this candidate is unsorted : next sorted candidate is reached t… in ZSTD_insertDUBT1() local 107 for (; nbCompares && (matchIndex > windowLow); --nbCompares) { in ZSTD_insertDUBT1() 108 U32* const nextPtr = bt + 2*(matchIndex & btMask); in ZSTD_insertDUBT1() 110 assert(matchIndex < curr); in ZSTD_insertDUBT1() 116 || (matchIndex+matchLength >= dictLimit) /* both in current segment*/ in ZSTD_insertDUBT1() 119 || (matchIndex+matchLength >= dictLimit)) ? in ZSTD_insertDUBT1() 121 …assert( (matchIndex+matchLength >= dictLimit) /* might be wrong if extDict is incorrectly set to… in ZSTD_insertDUBT1() 123 match = mBase + matchIndex; in ZSTD_insertDUBT1() [all …]
|
| H A D | zstd_opt.c | 456 U32 matchIndex = hashTable[h]; in ZSTD_insertBt1() local 490 for (; nbCompares && (matchIndex >= windowLow); --nbCompares) { in ZSTD_insertBt1() 491 U32* const nextPtr = bt + 2*(matchIndex & btMask); in ZSTD_insertBt1() 493 assert(matchIndex < curr); in ZSTD_insertBt1() 496 …const U32* predictPtr = bt + 2*((matchIndex-1) & btMask); /* written this way, as bt is a roll b… in ZSTD_insertBt1() 497 if (matchIndex == predictedSmall) { in ZSTD_insertBt1() 499 *smallerPtr = matchIndex; in ZSTD_insertBt1() 500 … if (matchIndex <= btLow) { smallerPtr=&dummy32; break; } /* beyond tree size, stop the search */ in ZSTD_insertBt1() 502 …matchIndex = nextPtr[1]; /* new matchIndex larger than previous (closer to current) */ in ZSTD_insertBt1() 506 if (matchIndex == predictedLarge) { in ZSTD_insertBt1() [all …]
|
| H A D | zstd_double_fast.c | 647 const U32 matchIndex = hashSmall[hSmall]; in ZSTD_compressBlock_doubleFast_extDict_generic() local 648 const BYTE* const matchBase = matchIndex < prefixStartIndex ? dictBase : base; in ZSTD_compressBlock_doubleFast_extDict_generic() 649 const BYTE* match = matchBase + matchIndex; in ZSTD_compressBlock_doubleFast_extDict_generic() 682 } else if ((matchIndex > dictStartIndex) && (MEM_read32(match) == MEM_read32(ip))) { in ZSTD_compressBlock_doubleFast_extDict_generic() 697 const BYTE* const matchEnd = matchIndex < prefixStartIndex ? dictEnd : iend; in ZSTD_compressBlock_doubleFast_extDict_generic() 698 … const BYTE* const lowMatchPtr = matchIndex < prefixStartIndex ? dictStart : prefixStart; in ZSTD_compressBlock_doubleFast_extDict_generic() 700 offset = curr - matchIndex; in ZSTD_compressBlock_doubleFast_extDict_generic()
|
| H A D | zstd_fast.c | 551 U32 matchIndex = hashTable[hash0]; in ZSTD_compressBlock_fast_dictMatchState_generic() local 559 const BYTE* match = base + matchIndex; in ZSTD_compressBlock_fast_dictMatchState_generic() 584 if (matchIndex <= prefixStartIndex) { in ZSTD_compressBlock_fast_dictMatchState_generic() 601 if (ZSTD_match4Found_cmov(ip0, match, matchIndex, prefixStartIndex)) { in ZSTD_compressBlock_fast_dictMatchState_generic() 620 matchIndex = hashTable[hash1]; in ZSTD_compressBlock_fast_dictMatchState_generic()
|
| /freebsd/sys/contrib/zstd/lib/compress/ |
| H A D | zstd_lazy.c | 54 U32 const matchIndex = hashTable[h]; in ZSTD_updateDUBT() local 61 *nextCandidatePtr = matchIndex; /* update BT like a chain */ in ZSTD_updateDUBT() 94 …U32 matchIndex = *smallerPtr; /* this candidate is unsorted : next sorted candidate is reached t… in ZSTD_insertDUBT1() local 106 for (; nbCompares && (matchIndex > windowLow); --nbCompares) { in ZSTD_insertDUBT1() 107 U32* const nextPtr = bt + 2*(matchIndex & btMask); in ZSTD_insertDUBT1() 109 assert(matchIndex < curr); in ZSTD_insertDUBT1() 115 || (matchIndex+matchLength >= dictLimit) /* both in current segment*/ in ZSTD_insertDUBT1() 118 || (matchIndex+matchLength >= dictLimit)) ? in ZSTD_insertDUBT1() 120 …assert( (matchIndex+matchLength >= dictLimit) /* might be wrong if extDict is incorrectly set to… in ZSTD_insertDUBT1() 122 match = mBase + matchIndex; in ZSTD_insertDUBT1() [all …]
|
| H A D | zstd_opt.c | 455 U32 matchIndex = hashTable[h]; in ZSTD_insertBt1() local 489 for (; nbCompares && (matchIndex >= windowLow); --nbCompares) { in ZSTD_insertBt1() 490 U32* const nextPtr = bt + 2*(matchIndex & btMask); in ZSTD_insertBt1() 492 assert(matchIndex < curr); in ZSTD_insertBt1() 495 …const U32* predictPtr = bt + 2*((matchIndex-1) & btMask); /* written this way, as bt is a roll b… in ZSTD_insertBt1() 496 if (matchIndex == predictedSmall) { in ZSTD_insertBt1() 498 *smallerPtr = matchIndex; in ZSTD_insertBt1() 499 … if (matchIndex <= btLow) { smallerPtr=&dummy32; break; } /* beyond tree size, stop the search */ in ZSTD_insertBt1() 501 …matchIndex = nextPtr[1]; /* new matchIndex larger than previous (closer to current) */ in ZSTD_insertBt1() 505 if (matchIndex == predictedLarge) { in ZSTD_insertBt1() [all …]
|
| H A D | zstd_double_fast.c | 646 const U32 matchIndex = hashSmall[hSmall]; in ZSTD_compressBlock_doubleFast_extDict_generic() local 647 const BYTE* const matchBase = matchIndex < prefixStartIndex ? dictBase : base; in ZSTD_compressBlock_doubleFast_extDict_generic() 648 const BYTE* match = matchBase + matchIndex; in ZSTD_compressBlock_doubleFast_extDict_generic() 681 } else if ((matchIndex > dictStartIndex) && (MEM_read32(match) == MEM_read32(ip))) { in ZSTD_compressBlock_doubleFast_extDict_generic() 696 const BYTE* const matchEnd = matchIndex < prefixStartIndex ? dictEnd : iend; in ZSTD_compressBlock_doubleFast_extDict_generic() 697 … const BYTE* const lowMatchPtr = matchIndex < prefixStartIndex ? dictStart : prefixStart; in ZSTD_compressBlock_doubleFast_extDict_generic() 699 offset = curr - matchIndex; in ZSTD_compressBlock_doubleFast_extDict_generic()
|
| H A D | zstd_fast.c | 550 U32 matchIndex = hashTable[hash0]; in ZSTD_compressBlock_fast_dictMatchState_generic() local 558 const BYTE* match = base + matchIndex; in ZSTD_compressBlock_fast_dictMatchState_generic() 583 if (matchIndex <= prefixStartIndex) { in ZSTD_compressBlock_fast_dictMatchState_generic() 600 if (ZSTD_match4Found_cmov(ip0, match, matchIndex, prefixStartIndex)) { in ZSTD_compressBlock_fast_dictMatchState_generic() 619 matchIndex = hashTable[hash1]; in ZSTD_compressBlock_fast_dictMatchState_generic()
|
| /freebsd/sys/dev/ath/ath_hal/ar5416/ |
| H A D | ar5416_reset.c | 2107 int matchIndex = -1, lowIndex = -1; in ar5416GetTargetPowers() local 2116 matchIndex = 0; in ar5416GetTargetPowers() 2120 matchIndex = i; in ar5416GetTargetPowers() 2129 if ((matchIndex == -1) && (lowIndex == -1)) { in ar5416GetTargetPowers() 2131 matchIndex = i - 1; in ar5416GetTargetPowers() 2135 if (matchIndex != -1) { in ar5416GetTargetPowers() 2136 OS_MEMCPY(pNewPower, &powInfo[matchIndex], sizeof(*pNewPower)); in ar5416GetTargetPowers() 2167 int matchIndex = -1, lowIndex = -1; in ar5416GetTargetPowersLeg() local 2176 matchIndex = 0; in ar5416GetTargetPowersLeg() 2180 matchIndex = i; in ar5416GetTargetPowersLeg() [all …]
|