Home
last modified time | relevance | path

Searched refs:hashLog (Results 1 – 10 of 10) sorted by relevance

/linux-6.1.9/lib/zstd/compress/
Dzstd_ldm.c116 if (params->hashLog == 0) { in ZSTD_ldm_adjustParameters()
117 params->hashLog = MAX(ZSTD_HASHLOG_MIN, params->windowLog - LDM_HASH_RLOG); in ZSTD_ldm_adjustParameters()
118 assert(params->hashLog <= ZSTD_HASHLOG_MAX); in ZSTD_ldm_adjustParameters()
121 params->hashRateLog = params->windowLog < params->hashLog in ZSTD_ldm_adjustParameters()
123 : params->windowLog - params->hashLog; in ZSTD_ldm_adjustParameters()
125 params->bucketSizeLog = MIN(params->bucketSizeLog, params->hashLog); in ZSTD_ldm_adjustParameters()
130 size_t const ldmHSize = ((size_t)1) << params.hashLog; in ZSTD_ldm_getTableSize()
131 size_t const ldmBucketSizeLog = MIN(params.bucketSizeLog, params.hashLog); in ZSTD_ldm_getTableSize()
132 size_t const ldmBucketSize = ((size_t)1) << (params.hashLog - ldmBucketSizeLog); in ZSTD_ldm_getTableSize()
245 U32 const hBits = params->hashLog - params->bucketSizeLog; in ZSTD_ldm_fillHashTable()
[all …]
Dzstd_lazy.c26 U32 const hashLog = cParams->hashLog; in ZSTD_updateDUBT() local
44 … size_t const h = ZSTD_hashPtr(base + idx, hashLog, mls); /* assumption : ip + 8 <= iend */ in ZSTD_updateDUBT()
165 U32 const hashLog = dmsCParams->hashLog; in ZSTD_DUBT_findBetterDictMatch() local
166 size_t const h = ZSTD_hashPtr(ip, hashLog, mls); in ZSTD_DUBT_findBetterDictMatch()
239 U32 const hashLog = cParams->hashLog; in ZSTD_DUBT_findBestMatch() local
240 size_t const h = ZSTD_hashPtr(ip, hashLog, mls); in ZSTD_DUBT_findBestMatch()
457 const U32 hashLog = cParams->hashLog; in ZSTD_insertAndFindFirstIndex_internal() local
465 size_t const h = ZSTD_hashPtr(base+idx, hashLog, mls); in ZSTD_insertAndFindFirstIndex_internal()
472 return hashTable[ZSTD_hashPtr(ip, hashLog, mls)]; in ZSTD_insertAndFindFirstIndex_internal()
499 U32 const hashLog = ms->cParams.hashLog - ZSTD_LAZY_DDSS_BUCKET_LOG; in ZSTD_dedicatedDictSearch_lazy_loadDictionary() local
[all …]
Dzstd_compress.c216 assert(cctxParams.ldmParams.hashLog >= cctxParams.ldmParams.bucketSizeLog); in ZSTD_makeCCtxParamsFromCParams()
615 CCtxParams->cParams.hashLog = (U32)value; in ZSTD_CCtxParams_setParameter()
616 return CCtxParams->cParams.hashLog; in ZSTD_CCtxParams_setParameter()
708 CCtxParams->ldmParams.hashLog = value; in ZSTD_CCtxParams_setParameter()
709 return CCtxParams->ldmParams.hashLog; in ZSTD_CCtxParams_setParameter()
785 *value = (int)CCtxParams->cParams.hashLog; in ZSTD_CCtxParams_getParameter()
837 *value = CCtxParams->ldmParams.hashLog; in ZSTD_CCtxParams_getParameter()
1050 BOUNDCHECK(ZSTD_c_hashLog, (int)cParams.hashLog); in ZSTD_checkCParams()
1072 CLAMP(ZSTD_c_hashLog, cParams.hashLog); in ZSTD_clampCParams()
1082 U32 ZSTD_cycleLog(U32 hashLog, ZSTD_strategy strat) in ZSTD_cycleLog() argument
[all …]
Dzstd_fast.c21 U32 const hBits = cParams->hashLog; in ZSTD_fillHashTable()
54 U32 const hlog = cParams->hashLog; in ZSTD_compressBlock_fast_generic()
213 U32 const hlog = cParams->hashLog; in ZSTD_compressBlock_fast_dictMatchState_generic()
236 const U32 dictHLog = dictCParams->hashLog; in ZSTD_compressBlock_fast_dictMatchState_generic()
381 U32 const hlog = cParams->hashLog; in ZSTD_compressBlock_fast_extDict_generic()
Dzstd_double_fast.c20 U32 const hBitsL = cParams->hashLog; in ZSTD_fillDoubleHashTable()
58 const U32 hBitsL = cParams->hashLog; in ZSTD_compressBlock_doubleFast_generic()
94 dictCParams->hashLog : hBitsL; in ZSTD_compressBlock_doubleFast_generic()
364 U32 const hBitsL = cParams->hashLog; in ZSTD_compressBlock_doubleFast_extDict_generic()
Dzstd_opt.c388 U32 const hashLog = cParams->hashLog; in ZSTD_insertBt1() local
389 size_t const h = ZSTD_hashPtr(ip, hashLog, mls); in ZSTD_insertBt1()
535 U32 const hashLog = cParams->hashLog; in ZSTD_insertBtAndGetAllMatches() local
538 size_t const h = ZSTD_hashPtr(ip, hashLog, mls); in ZSTD_insertBtAndGetAllMatches()
566 … U32 const dmsHashLog = dictMode == ZSTD_dictMatchState ? dmsCParams->hashLog : hashLog; in ZSTD_insertBtAndGetAllMatches()
Dzstd_compress_internal.h200 U32 hashLog; /* Log size of hashTable */ member
1181 U32 ZSTD_cycleLog(U32 hashLog, ZSTD_strategy strat);
/linux-6.1.9/lib/zstd/
Dzstd_compress_module.c37 cctx, ZSTD_c_hashLog, parameters->cParams.hashLog)); in zstd_cctx_init()
/linux-6.1.9/lib/lz4/
Dlz4_compress.c64 const U32 hashLog = (tableType == byU16) in LZ4_hash5() local
71 return (U32)(((sequence << 24) * prime5bytes) >> (64 - hashLog)); in LZ4_hash5()
75 return (U32)(((sequence >> 24) * prime8bytes) >> (64 - hashLog)); in LZ4_hash5()
/linux-6.1.9/include/linux/
Dzstd_lib.h1162 unsigned hashLog; /*< dispatch table : larger == faster, more memory */ member