Home
last modified time | relevance | path

Searched refs:matchIndex (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.10/lib/lz4/
Dlz4hc_compress.c114 U32 matchIndex; in LZ4HC_InsertAndFindBestMatch() local
120 matchIndex = HashTable[LZ4HC_hashPtr(ip)]; in LZ4HC_InsertAndFindBestMatch()
122 while ((matchIndex >= lowLimit) in LZ4HC_InsertAndFindBestMatch()
125 if (matchIndex >= dictLimit) { in LZ4HC_InsertAndFindBestMatch()
126 const BYTE * const match = base + matchIndex; in LZ4HC_InsertAndFindBestMatch()
139 const BYTE * const match = dictBase + matchIndex; in LZ4HC_InsertAndFindBestMatch()
144 + (dictLimit - matchIndex); in LZ4HC_InsertAndFindBestMatch()
158 *matchpos = base + matchIndex; in LZ4HC_InsertAndFindBestMatch()
162 matchIndex -= DELTANEXTU16(matchIndex); in LZ4HC_InsertAndFindBestMatch()
187 U32 matchIndex; in LZ4HC_InsertAndGetWiderMatch() local
[all …]
/Linux-v5.10/drivers/net/wireless/ath/ath9k/
Deeprom.c279 int matchIndex = -1, lowIndex = -1; in ath9k_hw_get_legacy_target_powers() local
287 matchIndex = 0; in ath9k_hw_get_legacy_target_powers()
293 matchIndex = i; in ath9k_hw_get_legacy_target_powers()
303 if ((matchIndex == -1) && (lowIndex == -1)) in ath9k_hw_get_legacy_target_powers()
304 matchIndex = i - 1; in ath9k_hw_get_legacy_target_powers()
307 if (matchIndex != -1) { in ath9k_hw_get_legacy_target_powers()
308 *pNewPower = powInfo[matchIndex]; in ath9k_hw_get_legacy_target_powers()
334 int matchIndex = -1, lowIndex = -1; in ath9k_hw_get_target_powers() local
341 matchIndex = 0; in ath9k_hw_get_target_powers()
347 matchIndex = i; in ath9k_hw_get_target_powers()
[all …]
/Linux-v5.10/lib/zstd/
Dcompress.c1039 U32 const matchIndex = hashTable[h]; in ZSTD_compressBlock_fast_generic() local
1040 const BYTE *match = base + matchIndex; in ZSTD_compressBlock_fast_generic()
1049 if ((matchIndex <= lowestIndex) || (ZSTD_read32(match) != ZSTD_read32(ip))) { in ZSTD_compressBlock_fast_generic()
1138 const U32 matchIndex = hashTable[h]; in ZSTD_compressBlock_fast_extDict_generic() local
1139 const BYTE *matchBase = matchIndex < dictLimit ? dictBase : base; in ZSTD_compressBlock_fast_extDict_generic()
1140 const BYTE *match = matchBase + matchIndex; in ZSTD_compressBlock_fast_extDict_generic()
1155 if ((matchIndex < lowestIndex) || (ZSTD_read32(match) != ZSTD_read32(ip))) { in ZSTD_compressBlock_fast_extDict_generic()
1160 const BYTE *matchEnd = matchIndex < dictLimit ? dictEnd : iend; in ZSTD_compressBlock_fast_extDict_generic()
1161 const BYTE *lowMatchPtr = matchIndex < dictLimit ? dictStart : lowPrefixPtr; in ZSTD_compressBlock_fast_extDict_generic()
1169 offset = curr - matchIndex; in ZSTD_compressBlock_fast_extDict_generic()
[all …]
Dzstd_opt.h243 U32 matchIndex = hashTable[h]; in ZSTD_insertBtAndGetAllMatches() local
295 while (nbCompares-- && (matchIndex > windowLow)) { in ZSTD_insertBtAndGetAllMatches()
296 U32 *nextPtr = bt + 2 * (matchIndex & btMask); in ZSTD_insertBtAndGetAllMatches()
300 if ((!extDict) || (matchIndex + matchLength >= dictLimit)) { in ZSTD_insertBtAndGetAllMatches()
301 match = base + matchIndex; in ZSTD_insertBtAndGetAllMatches()
306 match = dictBase + matchIndex; in ZSTD_insertBtAndGetAllMatches()
308 if (matchIndex + matchLength >= dictLimit) in ZSTD_insertBtAndGetAllMatches()
309 match = base + matchIndex; /* to prepare for next usage of match[matchLength] */ in ZSTD_insertBtAndGetAllMatches()
313 if (matchLength > matchEndIdx - matchIndex) in ZSTD_insertBtAndGetAllMatches()
314 matchEndIdx = matchIndex + (U32)matchLength; in ZSTD_insertBtAndGetAllMatches()
[all …]