Searched refs:hashSalt (Results 1 – 3 of 3) sorted by relevance
| /linux/lib/zstd/compress/ |
| H A D | zstd_compress_internal.h | 285 …U64 hashSalt; /* For row-based matchFinder: salts the hash for reuse of… member 940 size_t ZSTD_hashPtrSalted(const void* p, U32 hBits, U32 mls, const U64 hashSalt) { in ZSTD_hashPtrSalted() argument 948 case 4: return ZSTD_hash4PtrS(p, hBits, (U32)hashSalt); in ZSTD_hashPtrSalted() 949 case 5: return ZSTD_hash5PtrS(p, hBits, hashSalt); in ZSTD_hashPtrSalted() 950 case 6: return ZSTD_hash6PtrS(p, hBits, hashSalt); in ZSTD_hashPtrSalted() 951 case 7: return ZSTD_hash7PtrS(p, hBits, hashSalt); in ZSTD_hashPtrSalted() 952 case 8: return ZSTD_hash8PtrS(p, hBits, hashSalt); in ZSTD_hashPtrSalted()
|
| H A D | zstd_lazy.c | 849 …st hash = (U32)ZSTD_hashPtrSalted(base + idx, hashLog + ZSTD_ROW_HASH_TAG_BITS, mls, ms->hashSalt); in ZSTD_row_fillHashCache() 870 U64 const hashSalt) in ZSTD_row_nextCachedHash() argument 872 …_hashPtrSalted(base+idx+ZSTD_ROW_HASH_CACHE_SIZE, hashLog + ZSTD_ROW_HASH_TAG_BITS, mls, hashSalt); in ZSTD_row_nextCachedHash() 898 …dHash(ms->hashCache, hashTable, tagTable, base, updateStartIdx, hashLog, rowLog, mls, ms->hashSalt) in ZSTD_row_update_internalImpl() 899 …U32)ZSTD_hashPtrSalted(base + updateStartIdx, hashLog + ZSTD_ROW_HASH_TAG_BITS, mls, ms->hashSalt); in ZSTD_row_update_internalImpl() 905 …== ZSTD_hashPtrSalted(base + updateStartIdx, hashLog + ZSTD_ROW_HASH_TAG_BITS, mls, ms->hashSalt)); in ZSTD_row_update_internalImpl() 1169 const U64 hashSalt = ms->hashSalt; in ZSTD_RowFindBestMatch() local 1208 …STD_row_nextCachedHash(hashCache, hashTable, tagTable, base, curr, hashLog, rowLog, mls, hashSalt); in ZSTD_RowFindBestMatch() 1213 hash = (U32)ZSTD_hashPtrSalted(ip, hashLog + ZSTD_ROW_HASH_TAG_BITS, mls, hashSalt); in ZSTD_RowFindBestMatch()
|
| H A D | zstd_compress.c | 1907 ms->hashSalt = ZSTD_bitmix(ms->hashSalt, 8) ^ ZSTD_bitmix((U64) ms->hashSaltEntropy, 4); in ZSTD_advanceHashSalt() 1970 ms->hashSalt = 0; in ZSTD_reset_matchState() 2379 cctx->blockState.matchState.hashSalt = cdict->matchState.hashSalt; in ZSTD_resetCCtx_byCopyingCDict()
|