Home
last modified time | relevance | path

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

12

/external/zstd/lib/compress/
Dzstd_ldm.c30 if (params->hashLog == 0) { in ZSTD_ldm_adjustParameters()
31 params->hashLog = MAX(ZSTD_HASHLOG_MIN, params->windowLog - LDM_HASH_RLOG); in ZSTD_ldm_adjustParameters()
32 assert(params->hashLog <= ZSTD_HASHLOG_MAX); in ZSTD_ldm_adjustParameters()
35 params->hashRateLog = params->windowLog < params->hashLog in ZSTD_ldm_adjustParameters()
37 : params->windowLog - params->hashLog; in ZSTD_ldm_adjustParameters()
39 params->bucketSizeLog = MIN(params->bucketSizeLog, params->hashLog); in ZSTD_ldm_adjustParameters()
44 size_t const ldmHSize = ((size_t)1) << params.hashLog; in ZSTD_ldm_getTableSize()
45 size_t const ldmBucketSizeLog = MIN(params.bucketSizeLog, params.hashLog); in ZSTD_ldm_getTableSize()
46 size_t const ldmBucketSize = ((size_t)1) << (params.hashLog - ldmBucketSizeLog); in ZSTD_ldm_getTableSize()
250 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()
456 const U32 hashLog = cParams->hashLog; in ZSTD_insertAndFindFirstIndex_internal() local
464 size_t const h = ZSTD_hashPtr(base+idx, hashLog, mls); in ZSTD_insertAndFindFirstIndex_internal()
471 return hashTable[ZSTD_hashPtr(ip, hashLog, mls)]; in ZSTD_insertAndFindFirstIndex_internal()
498 U32 const hashLog = ms->cParams.hashLog - ZSTD_LAZY_DDSS_BUCKET_LOG; in ZSTD_dedicatedDictSearch_lazy_loadDictionary() local
[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_compress.c226 assert(cctxParams.ldmParams.hashLog >= cctxParams.ldmParams.bucketSizeLog); in ZSTD_makeCCtxParamsFromCParams()
621 CCtxParams->cParams.hashLog = (U32)value; in ZSTD_CCtxParams_setParameter()
622 return CCtxParams->cParams.hashLog; in ZSTD_CCtxParams_setParameter()
742 CCtxParams->ldmParams.hashLog = value; in ZSTD_CCtxParams_setParameter()
743 return CCtxParams->ldmParams.hashLog; in ZSTD_CCtxParams_setParameter()
819 *value = (int)CCtxParams->cParams.hashLog; in ZSTD_CCtxParams_getParameter()
889 *value = CCtxParams->ldmParams.hashLog; in ZSTD_CCtxParams_getParameter()
1102 BOUNDCHECK(ZSTD_c_hashLog, (int)cParams.hashLog); in ZSTD_checkCParams()
1124 CLAMP(ZSTD_c_hashLog, cParams.hashLog); in ZSTD_clampCParams()
1134 U32 ZSTD_cycleLog(U32 hashLog, ZSTD_strategy strat) in ZSTD_cycleLog() argument
[all …]
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()
366 U32 const hBitsL = cParams->hashLog; in ZSTD_compressBlock_doubleFast_extDict_generic()
Dzstd_opt.c376 U32 const hashLog = cParams->hashLog; in ZSTD_insertBt1() local
377 size_t const h = ZSTD_hashPtr(ip, hashLog, mls); in ZSTD_insertBt1()
523 U32 const hashLog = cParams->hashLog; in ZSTD_insertBtAndGetAllMatches() local
526 size_t const h = ZSTD_hashPtr(ip, hashLog, mls); in ZSTD_insertBtAndGetAllMatches()
554 … U32 const dmsHashLog = dictMode == ZSTD_dictMatchState ? dmsCParams->hashLog : hashLog; in ZSTD_insertBtAndGetAllMatches()
Dzstdmt_compress.c473 assert(params.ldmParams.hashLog >= params.ldmParams.bucketSizeLog); in ZSTDMT_serialState_reset()
485 unsigned const hashLog = params.ldmParams.hashLog; in ZSTDMT_serialState_reset() local
486 size_t const hashSize = ((size_t)1 << hashLog) * sizeof(ldmEntry_t); in ZSTDMT_serialState_reset()
488 params.ldmParams.hashLog - params.ldmParams.bucketSizeLog; in ZSTDMT_serialState_reset()
491 serialState->params.ldmParams.hashLog - in ZSTDMT_serialState_reset()
498 … if (serialState->ldmState.hashTable == NULL || serialState->params.ldmParams.hashLog < hashLog) { in ZSTDMT_serialState_reset()
Dzstd_compress_internal.h197 U32 hashLog; /* Log size of hashTable */ member
1201 U32 ZSTD_cycleLog(U32 hashLog, ZSTD_strategy strat);
/external/zstd/tests/fuzz/
Dzstd_helpers.c40 cParams.hashLog = FUZZ_dataProducer_uint32Range(producer, ZSTD_HASHLOG_MIN, 15); in FUZZ_randomCParams()
72 set(cctx, ZSTD_c_hashLog, cParams.hashLog); in FUZZ_setRandomParameters()
/external/zstd/lib/legacy/
Dzstd_v05.h89 …U32 contentLog; U32 hashLog; U32 searchLog; U32 searchLength; U32 targetLength; ZSTDv05_strategy s… member
/external/zstd/tests/
Dlongmatch.c51 params.cParams.hashLog = 14; in main()
Dfullbench.c499 ZSTD_CCtx_setParameter(g_zcc, ZSTD_c_hashLog, (int)cparams.hashLog); in benchMem()
509 ZSTD_CCtx_setParameter(g_cstream, ZSTD_c_hashLog, (int)cparams.hashLog); in benchMem()
853 …&argument, "hashLog=") || longCommandWArg(&argument, "hlog=")) { cparams.hashLog = readU32FromChar… in main()
Dzstreamtest.c229 CHECK_RET_Z(ZSTD_CCtx_getParameter(zc, ZSTD_c_hashLog, (int*)&savedParams->cParams.hashLog)); in getCCtxParams()
249 CHECK_RET(2, params.cParams.hashLog != savedParams.cParams.hashLog, "hashLog"); in badParameters()
2146 cParams.hashLog += (FUZ_rand(&lseed) & 3) - 1; in fuzzerTests_newAPI()
2161 DISPLAYLEVEL(5, "t%u: hashLog : %u \n", testNb, cParams.hashLog); in fuzzerTests_newAPI()
2162 … CHECK_Z( setCCtxParameter(zc, cctxParams, ZSTD_c_hashLog, cParams.hashLog, opaqueAPI) ); in fuzzerTests_newAPI()
DREADME.md142 h# - hashLog
Dparamgrill.c338 c.hashLog = p.vals[hlog_ind]; in pvalsToCParams()
353 p.vals[hlog_ind] = c.hashLog; in cParamsToPVals()
Dfuzzer.c387 params.hashLog = 19; in basicUnitTests()
390 if (params.hashLog != 18) goto _output_error; in basicUnitTests()
/external/zstd/tests/regression/
Dconfig.c259 zparams.cParams.hashLog = value; in config_get_zstd_params()
/external/zstd/contrib/linux-kernel/
Dzstd_compress_module.c29 ZSTD_STATIC_ASSERT(offsetof(ZSTD_compressionParameters, hashLog) == in zstd_check_structs()
/external/zstd/programs/
Dzstdcli.c543 …tringPtr, "hashLog=") || longCommandWArg(&stringPtr, "hlog=")) { params->hashLog = readU32FromChar… in parseCompressionParameters()
557 …shLog=%d, searchLog=%d \n", params->windowLog, params->chainLog, params->hashLog, params->searchLo… in parseCompressionParameters()
1342 DISPLAY(" - hashLog : %u\n", cParams.hashLog); in main()
Dbenchzstd.c184 CHECK_Z(ZSTD_CCtx_setParameter(ctx, ZSTD_c_hashLog, (int)comprParams->hashLog)); in BMK_initCCtx()
Dzstd.1.md454 - `hashLog`=_hlog_, `hlog`=_hlog_:
Dfileio.c982 CHECK( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_c_hashLog, (int)comprParams.hashLog) ); in FIO_createCResources()
/external/lz4/lib/
Dlz4.c641 const U32 hashLog = (tableType == byU16) ? LZ4_HASHLOG+1 : LZ4_HASHLOG; in LZ4_hash5() local
644 return (U32)(((sequence << 24) * prime5bytes) >> (64 - hashLog)); in LZ4_hash5()
647 return (U32)(((sequence >> 24) * prime8bytes) >> (64 - hashLog)); in LZ4_hash5()
/external/zstd/lib/
Dzstd.h1166 unsigned hashLog; /**< dispatch table : larger == faster, more memory */ member
/external/zstd/zlibWrapper/
Dzstd_zlibwrapper.c211 …cSize, params.cParams.windowLog, params.cParams.chainLog, params.cParams.hashLog, params.cParams.s… in ZWRAP_initializeCStream()

12