/external/zstd/tests/fuzz/ |
D | zstd_helpers.c | 38 ZSTD_compressionParameters cParams; in FUZZ_randomCParams() local 39 cParams.windowLog = FUZZ_dataProducer_uint32Range(producer, ZSTD_WINDOWLOG_MIN, 15); in FUZZ_randomCParams() 40 cParams.hashLog = FUZZ_dataProducer_uint32Range(producer, ZSTD_HASHLOG_MIN, 15); in FUZZ_randomCParams() 41 cParams.chainLog = FUZZ_dataProducer_uint32Range(producer, ZSTD_CHAINLOG_MIN, 16); in FUZZ_randomCParams() 42 cParams.searchLog = FUZZ_dataProducer_uint32Range(producer, ZSTD_SEARCHLOG_MIN, 9); in FUZZ_randomCParams() 43 cParams.minMatch = FUZZ_dataProducer_uint32Range(producer, ZSTD_MINMATCH_MIN, in FUZZ_randomCParams() 45 cParams.targetLength = FUZZ_dataProducer_uint32Range(producer, 0, 512); in FUZZ_randomCParams() 46 … cParams.strategy = FUZZ_dataProducer_uint32Range(producer, ZSTD_STRATEGY_MIN, ZSTD_STRATEGY_MAX); in FUZZ_randomCParams() 47 return ZSTD_adjustCParams(cParams, srcSize, 0); in FUZZ_randomCParams() 63 params.cParams = FUZZ_randomCParams(srcSize, producer); in FUZZ_randomParams() [all …]
|
/external/zstd/lib/compress/ |
D | zstd_compress.c | 209 static U32 ZSTD_CParams_shouldEnableLdm(const ZSTD_compressionParameters* const cParams) { in ZSTD_CParams_shouldEnableLdm() argument 210 return cParams->strategy >= ZSTD_btopt && cParams->windowLog >= 27; in ZSTD_CParams_shouldEnableLdm() 214 ZSTD_compressionParameters cParams) in ZSTD_makeCCtxParamsFromCParams() argument 219 cctxParams.cParams = cParams; in ZSTD_makeCCtxParamsFromCParams() 221 if (ZSTD_CParams_shouldEnableLdm(&cParams)) { in ZSTD_makeCCtxParamsFromCParams() 225 ZSTD_ldm_adjustParameters(&cctxParams.ldmParams, &cParams); in ZSTD_makeCCtxParamsFromCParams() 230 assert(!ZSTD_checkCParams(cParams)); in ZSTD_makeCCtxParamsFromCParams() 275 FORWARD_IF_ERROR( ZSTD_checkCParams(params.cParams) , ""); in ZSTD_CCtxParams_init_advanced() 277 assert(!ZSTD_checkCParams(params.cParams)); in ZSTD_CCtxParams_init_advanced() 278 cctxParams->cParams = params.cParams; in ZSTD_CCtxParams_init_advanced() [all …]
|
D | zstd_fast.c | 19 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_fillHashTable() local 21 U32 const hBits = cParams->hashLog; in ZSTD_fillHashTable() 22 U32 const mls = cParams->minMatch; in ZSTD_fillHashTable() 52 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_compressBlock_fast_generic() local 54 U32 const hlog = cParams->hashLog; in ZSTD_compressBlock_fast_generic() 56 size_t const stepSize = cParams->targetLength + !(cParams->targetLength) + 1; in ZSTD_compressBlock_fast_generic() 64 const U32 prefixStartIndex = ZSTD_getLowestPrefixIndex(ms, endIndex, cParams->windowLog); in ZSTD_compressBlock_fast_generic() 76 U32 const windowLow = ZSTD_getLowestPrefixIndex(ms, curr, cParams->windowLog); in ZSTD_compressBlock_fast_generic() 190 U32 const mls = ms->cParams.minMatch; in ZSTD_compressBlock_fast() 211 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_compressBlock_fast_dictMatchState_generic() local [all …]
|
D | zstd_lazy.c | 24 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_updateDUBT() local 26 U32 const hashLog = cParams->hashLog; in ZSTD_updateDUBT() 29 U32 const btLog = cParams->chainLog - 1; in ZSTD_updateDUBT() 69 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_insertDUBT1() local 71 U32 const btLog = cParams->chainLog - 1; in ZSTD_insertDUBT1() 87 U32 const maxDistance = 1U << cParams->windowLog; in ZSTD_insertDUBT1() 163 const ZSTD_compressionParameters* const dmsCParams = &dms->cParams; in ZSTD_DUBT_findBetterDictMatch() 237 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_DUBT_findBestMatch() local 239 U32 const hashLog = cParams->hashLog; in ZSTD_DUBT_findBestMatch() 245 U32 const windowLow = ZSTD_getLowestMatchIndex(ms, curr, cParams->windowLog); in ZSTD_DUBT_findBestMatch() [all …]
|
D | zstd_double_fast.c | 18 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_fillDoubleHashTable() local 20 U32 const hBitsL = cParams->hashLog; in ZSTD_fillDoubleHashTable() 21 U32 const mls = cParams->minMatch; in ZSTD_fillDoubleHashTable() 23 U32 const hBitsS = cParams->chainLog; in ZSTD_fillDoubleHashTable() 56 ZSTD_compressionParameters const* cParams = &ms->cParams; in ZSTD_compressBlock_doubleFast_generic() local 58 const U32 hBitsL = cParams->hashLog; in ZSTD_compressBlock_doubleFast_generic() 60 const U32 hBitsS = cParams->chainLog; in ZSTD_compressBlock_doubleFast_generic() 67 const U32 prefixLowestIndex = ZSTD_getLowestPrefixIndex(ms, endIndex, cParams->windowLog); in ZSTD_compressBlock_doubleFast_generic() 77 &dms->cParams : NULL; in ZSTD_compressBlock_doubleFast_generic() 105 assert(ms->window.dictLimit + (1U << cParams->windowLog) >= endIndex); in ZSTD_compressBlock_doubleFast_generic() [all …]
|
D | zstd_opt.c | 374 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_insertBt1() local 376 U32 const hashLog = cParams->hashLog; in ZSTD_insertBt1() 379 U32 const btLog = cParams->chainLog - 1; in ZSTD_insertBt1() 397 U32 nbCompares = 1U << cParams->searchLog; in ZSTD_insertBt1() 505 ZSTD_updateTree_internal(ms, ip, iend, ms->cParams.minMatch, ZSTD_noDict); in ZSTD_updateTree() 519 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_insertBtAndGetAllMatches() local 520 U32 const sufficient_len = MIN(cParams->targetLength, ZSTD_OPT_NUM -1); in ZSTD_insertBtAndGetAllMatches() 523 U32 const hashLog = cParams->hashLog; in ZSTD_insertBtAndGetAllMatches() 529 U32 const btLog = cParams->chainLog - 1; in ZSTD_insertBtAndGetAllMatches() 537 U32 const windowLow = ZSTD_getLowestMatchIndex(ms, curr, cParams->windowLog); in ZSTD_insertBtAndGetAllMatches() [all …]
|
D | zstd_ldm.c | 23 ZSTD_compressionParameters const* cParams) in ZSTD_ldm_adjustParameters() argument 25 params->windowLog = cParams->windowLog; in ZSTD_ldm_adjustParameters() 190 switch(ms->cParams.strategy) in ZSTD_ldm_fillFastTables() 601 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_ldm_blockCompress() local 602 unsigned const minMatch = cParams->minMatch; in ZSTD_ldm_blockCompress() 604 ZSTD_selectBlockCompressor(cParams->strategy, ZSTD_matchState_dictMode(ms)); in ZSTD_ldm_blockCompress() 613 if (cParams->strategy >= ZSTD_btopt) { in ZSTD_ldm_blockCompress()
|
D | zstdmt_compress.c | 471 DEBUGLOG(4, "LDM window size = %u KB", (1U << params.cParams.windowLog) >> 10); in ZSTDMT_serialState_reset() 472 ZSTD_ldm_adjustParameters(¶ms.ldmParams, ¶ms.cParams); in ZSTDMT_serialState_reset() 1038 …U32 const saved_wlog = mtctx->params.cParams.windowLog; /* Do not modify windowLog while compres… in ZSTDMT_updateCParams_whileCompressing() 1043 …{ ZSTD_compressionParameters cParams = ZSTD_getCParamsFromCCtxParams(cctxParams, ZSTD_CONTENTSIZ… in ZSTDMT_updateCParams_whileCompressing() local 1044 cParams.windowLog = saved_wlog; in ZSTDMT_updateCParams_whileCompressing() 1045 mtctx->params.cParams = cParams; in ZSTDMT_updateCParams_whileCompressing() 1131 jobLog = MAX(21, ZSTD_cycleLog(params->cParams.chainLog, params->cParams.strategy) + 3); in ZSTDMT_computeTargetJobLog() 1133 jobLog = MAX(20, params->cParams.windowLog + 2); in ZSTDMT_computeTargetJobLog() 1168 int const overlapRLog = 9 - ZSTDMT_overlapLog(params->overlapLog, params->cParams.strategy); in ZSTDMT_computeOverlapSize() 1169 int ovLog = (overlapRLog >= 8) ? 0 : (params->cParams.windowLog - overlapRLog); in ZSTDMT_computeOverlapSize() [all …]
|
D | zstd_ldm.h | 110 ZSTD_compressionParameters const* cParams);
|
D | zstd_compress_internal.h | 171 ZSTD_compressionParameters cParams; member 213 ZSTD_compressionParameters cParams; member 476 … return (cctxParams->cParams.strategy == ZSTD_fast) && (cctxParams->cParams.targetLength > 0); in ZSTD_disableLiteralsCompression()
|
D | zstd_compress_superblock.c | 177 ZSTD_strategy const strategy = cctxParams->cParams.strategy; in ZSTD_buildSuperBlockEntropy_sequences() 444 const int longOffsets = cctxParams->cParams.windowLog > STREAM_ACCUMULATOR_MIN; in ZSTD_compressSubBlock_sequences()
|
/external/zstd/tests/ |
D | longmatch.c | 49 params.cParams.windowLog = 18; in main() 50 params.cParams.chainLog = 13; in main() 51 params.cParams.hashLog = 14; in main() 52 params.cParams.searchLog = 1; in main() 53 params.cParams.minMatch = 7; in main() 54 params.cParams.targetLength = 16; in main() 55 params.cParams.strategy = ZSTD_fast; in main() 56 windowLog = params.cParams.windowLog; in main()
|
D | zstreamtest.c | 228 … CHECK_RET_Z(ZSTD_CCtx_getParameter(zc, ZSTD_c_windowLog, (int*)&savedParams->cParams.windowLog)); in getCCtxParams() 229 CHECK_RET_Z(ZSTD_CCtx_getParameter(zc, ZSTD_c_hashLog, (int*)&savedParams->cParams.hashLog)); in getCCtxParams() 230 CHECK_RET_Z(ZSTD_CCtx_getParameter(zc, ZSTD_c_chainLog, (int*)&savedParams->cParams.chainLog)); in getCCtxParams() 231 … CHECK_RET_Z(ZSTD_CCtx_getParameter(zc, ZSTD_c_searchLog, (int*)&savedParams->cParams.searchLog)); in getCCtxParams() 232 CHECK_RET_Z(ZSTD_CCtx_getParameter(zc, ZSTD_c_minMatch, (int*)&savedParams->cParams.minMatch)); in getCCtxParams() 233 …CHECK_RET_Z(ZSTD_CCtx_getParameter(zc, ZSTD_c_targetLength, (int*)&savedParams->cParams.targetLeng… in getCCtxParams() 235 savedParams->cParams.strategy = value; in getCCtxParams() 248 CHECK_RET(1, params.cParams.windowLog != savedParams.cParams.windowLog, "windowLog"); in badParameters() 249 CHECK_RET(2, params.cParams.hashLog != savedParams.cParams.hashLog, "hashLog"); in badParameters() 250 CHECK_RET(3, params.cParams.chainLog != savedParams.cParams.chainLog, "chainLog"); in badParameters() [all …]
|
D | paramgrill.c | 1533 static void display_params_tested(paramValues_t cParams) in display_params_tested() argument 1538 DISPLAYLEVEL(3, "%3u,", (unsigned)cParams.vals[vi]); in display_params_tested() 1687 paramValues_t cParams) in BMK_benchParam() argument 1690 BASE_CLEVEL, &cParams, in BMK_benchParam() 1702 const paramValues_t cParams, in allBench() argument 1710 …BMK_benchOutcome_t const outcome = BMK_benchMemInvertible(buf, ctx, BASE_CLEVEL, &cParams, BMK_bot… in allBench() 1766 const paramValues_t cParams, in benchMemo() argument 1773 if ( memoTableGet(memoTableArray, cParams) >= INFEASIBLE_THRESHOLD in benchMemo() 1774 || redundantParams(cParams, target, buf.maxBlockSize) ) { in benchMemo() 1778 res = allBench(resultPtr, buf, ctx, cParams, target, winnerResult, feas); in benchMemo() [all …]
|
D | fullbench.c | 108 p.cParams = *(ZSTD_compressionParameters*)payload; in local_ZSTD_compress() 210 p.cParams = *(ZSTD_compressionParameters*)payload; in local_ZSTD_compressStream() 342 p.cParams = *(ZSTD_compressionParameters*)payload; in local_ZSTD_compressContinue() 358 p.cParams = *(ZSTD_compressionParameters*)payload; in local_ZSTD_compressContinue_extDict()
|
D | fuzzer.c | 476 assert(!ZSTD_checkCParams(params.cParams)); in basicUnitTests() 1238 params.cParams.windowLog = ZSTD_WINDOWLOG_MAX; in basicUnitTests() 1909 { ZSTD_compressionParameters const cParams = ZSTD_getCParams(1, CNBuffSize, dictSize); in basicUnitTests() local 1910 … size_t const estimatedSize = ZSTD_estimateCDictSize_advanced(dictSize, cParams, ZSTD_dlm_byRef); in basicUnitTests() 1915 { ZSTD_compressionParameters const cParams = ZSTD_getCParams(1, CNBuffSize, dictSize); in basicUnitTests() local 1918 cParams, ZSTD_defaultCMem); in basicUnitTests() 1950 … ZSTD_compressionParameters const cParams = ZSTD_getCParams(level, CNBuffSize, dictSize); in basicUnitTests() local 1951 … size_t const cdictSize = ZSTD_estimateCDictSize_advanced(dictSize, cParams, ZSTD_dlm_byCopy); in basicUnitTests() 1958 cParams); in basicUnitTests() 1976 ZSTD_compressionParameters const cParams = ZSTD_getCParams(1, CNBuffSize, dictSize); in basicUnitTests() local [all …]
|
/external/zstd/contrib/pzstd/ |
D | Options.h | 59 if (maxWindowLog != 0 && params.cParams.windowLog > maxWindowLog) { in determineParameters() 60 params.cParams.windowLog = maxWindowLog; in determineParameters() 61 params.cParams = ZSTD_adjustCParams(params.cParams, 0, 0); in determineParameters()
|
D | Pzstd.cpp | 339 return size_t{1} << (params.cParams.windowLog + 2); in calculateStep()
|
/external/zstd/tests/regression/ |
D | config.c | 253 zparams.cParams.windowLog = value; in config_get_zstd_params() 256 zparams.cParams.chainLog = value; in config_get_zstd_params() 259 zparams.cParams.hashLog = value; in config_get_zstd_params() 262 zparams.cParams.searchLog = value; in config_get_zstd_params() 265 zparams.cParams.minMatch = value; in config_get_zstd_params() 268 zparams.cParams.targetLength = value; in config_get_zstd_params() 271 zparams.cParams.strategy = (ZSTD_strategy)value; in config_get_zstd_params()
|
/external/lz4/tests/ |
D | frametest.c | 567 LZ4F_preferences_t cParams; in basicTests() local 568 memset(&cParams, 0, sizeof(cParams)); in basicTests() 569 cParams.compressionLevel = -3; in basicTests() 573 cdict, &cParams) ); in basicTests() 579 LZ4F_preferences_t cParams; in basicTests() local 580 memset(&cParams, 0, sizeof(cParams)); in basicTests() 581 cParams.compressionLevel = LZ4F_compressionLevel_max(); in basicTests() 585 cdict, &cParams) ); in basicTests() 593 LZ4F_preferences_t cParams; in basicTests() local 594 memset(&cParams, 0, sizeof(cParams)); in basicTests() [all …]
|
/external/zstd/programs/ |
D | zstdcli.c | 1337 … const ZSTD_compressionParameters cParams = ZSTD_getCParams(cLevel, fileSize, dictSize); in main() local 1340 DISPLAY(" - windowLog : %u\n", cParams.windowLog); in main() 1341 DISPLAY(" - chainLog : %u\n", cParams.chainLog); in main() 1342 DISPLAY(" - hashLog : %u\n", cParams.hashLog); in main() 1343 DISPLAY(" - searchLog : %u\n", cParams.searchLog); in main() 1344 DISPLAY(" - minMatch : %u\n", cParams.minMatch); in main() 1345 DISPLAY(" - targetLength : %u\n", cParams.targetLength); in main() 1346 assert(cParams.strategy < ZSTD_NB_STRATEGIES + 1); in main() 1347 …LAY(" - strategy : %s (%u)\n", ZSTD_strategyMap[(int)cParams.strategy], (unsigned)cParams.str… in main()
|
/external/zstd/lib/ |
D | zstd.h | 1180 ZSTD_compressionParameters cParams; member 1403 ZSTDLIB_API size_t ZSTD_estimateCCtxSize_usingCParams(ZSTD_compressionParameters cParams); 1421 ZSTDLIB_API size_t ZSTD_estimateCStreamSize_usingCParams(ZSTD_compressionParameters cParams); 1432 …D_estimateCDictSize_advanced(size_t dictSize, ZSTD_compressionParameters cParams, ZSTD_dictLoadMet… 1467 ZSTD_compressionParameters cParams); 1498 ZSTD_compressionParameters cParams,
|
/external/tensorflow/tensorflow/lite/objc/sources/ |
D | TFLInterpreter.mm | 383 TfLiteQuantizationParams cParams = TfLiteTensorQuantizationParams(tensor); 387 if (cParams.scale != 0.0) { 388 quantizationParams = [[TFLQuantizationParameters alloc] initWithScale:cParams.scale 389 zeroPoint:cParams.zero_point];
|
/external/zstd/zlibWrapper/ |
D | zstd_zlibwrapper.c | 211 …e, params.cParams.windowLog, params.cParams.chainLog, params.cParams.hashLog, params.cParams.searc… in ZWRAP_initializeCStream()
|
/external/zstd/contrib/linux-kernel/ |
D | zstd_compress_module.c | 21 ZSTD_STATIC_ASSERT(offsetof(ZSTD_parameters, cParams) == in zstd_check_structs()
|