/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/ |
H A D | zstd_compress.c | 844 ZSTDLIB_API size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx* cctx, unsigned long long pledgedSrcSize) in ZSTD_CCtx_setPledgedSrcSize() argument 846 DEBUGLOG(4, "ZSTD_CCtx_setPledgedSrcSize to %u bytes", (U32)pledgedSrcSize); in ZSTD_CCtx_setPledgedSrcSize() 849 cctx->pledgedSrcSizePlusOne = pledgedSrcSize+1; in ZSTD_CCtx_setPledgedSrcSize() 1421 U64 const pledgedSrcSize, in ZSTD_resetCCtx_internal() argument 1427 (U32)pledgedSrcSize, params.cParams.windowLog); in ZSTD_resetCCtx_internal() 1440 …ize_t const windowSize = MAX(1, (size_t)MIN(((U64)1 << params.cParams.windowLog), pledgedSrcSize)); in ZSTD_resetCCtx_internal() 1515 zc->pledgedSrcSizePlusOne = pledgedSrcSize+1; in ZSTD_resetCCtx_internal() 1518 if (pledgedSrcSize == ZSTD_CONTENTSIZE_UNKNOWN) in ZSTD_resetCCtx_internal() 1521 (unsigned)pledgedSrcSize, zc->appliedParams.fParams.contentSizeFlag); in ZSTD_resetCCtx_internal() 1618 U64 pledgedSrcSize) in ZSTD_shouldAttachDict() argument [all …]
|
H A D | zstd_compress_internal.h | 1074 const ZSTD_CCtx_params* params, unsigned long long pledgedSrcSize); 1090 unsigned long long pledgedSrcSize);
|
/freebsd/sys/contrib/zstd/lib/deprecated/ |
H A D | zbuff_compress.c | 74 ZSTD_parameters params, unsigned long long pledgedSrcSize) in ZBUFF_compressInit_advanced() argument 76 …if (pledgedSrcSize==0) pledgedSrcSize = ZSTD_CONTENTSIZE_UNKNOWN; /* preserve "0 == unknown" beha… in ZBUFF_compressInit_advanced() 78 FORWARD_IF_ERROR(ZSTD_CCtx_setPledgedSrcSize(zbc, pledgedSrcSize), ""); in ZBUFF_compressInit_advanced()
|
H A D | zbuff.h | 205 … ZSTD_parameters params, unsigned long long pledgedSrcSize);
|
/freebsd/sys/contrib/zstd/lib/compress/ |
H A D | zstd_compress.c | 1078 size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx* cctx, unsigned long long pledgedSrcSize) in ZSTD_CCtx_setPledgedSrcSize() argument 1080 DEBUGLOG(4, "ZSTD_CCtx_setPledgedSrcSize to %u bytes", (U32)pledgedSrcSize); in ZSTD_CCtx_setPledgedSrcSize() 1083 cctx->pledgedSrcSizePlusOne = pledgedSrcSize+1; in ZSTD_CCtx_setPledgedSrcSize() 1465 const U64 pledgedSrcSize) in ZSTD_estimateCCtxSize_usingCCtxParams_internal() argument 1467 size_t const windowSize = (size_t) BOUNDED(1ULL, 1ULL << cParams->windowLog, pledgedSrcSize); in ZSTD_estimateCCtxSize_usingCCtxParams_internal() 1829 U64 const pledgedSrcSize, in ZSTD_resetCCtx_internal() argument 1836 …(U32)pledgedSrcSize, params->cParams.windowLog, (int)params->useRowMatchFinder, (int)params->useBl… in ZSTD_resetCCtx_internal() 1857 …ze_t const windowSize = MAX(1, (size_t)MIN(((U64)1 << params->cParams.windowLog), pledgedSrcSize)); in ZSTD_resetCCtx_internal() 1877 buffInSize, buffOutSize, pledgedSrcSize); in ZSTD_resetCCtx_internal() 1920 zc->pledgedSrcSizePlusOne = pledgedSrcSize+1; in ZSTD_resetCCtx_internal() [all …]
|
H A D | zstdmt_compress.h | 75 ZSTD_CCtx_params params, unsigned long long pledgedSrcSize);
|
H A D | zstdmt_compress.c | 702 U64 const pledgedSrcSize = job->firstJob ? job->fullFrameSize : job->src.size; in ZSTDMT_compressionJob() local 714 &jobParams, pledgedSrcSize); in ZSTDMT_compressionJob() 1221 unsigned long long pledgedSrcSize) in ZSTDMT_initCStream_internal() argument 1224 (U32)pledgedSrcSize, params.nbWorkers, mtctx->cctxPool->totalCCtx); in ZSTDMT_initCStream_internal() 1246 mtctx->frameContentSize = pledgedSrcSize; in ZSTDMT_initCStream_internal()
|
H A D | zstd_compress_internal.h | 1402 const ZSTD_CCtx_params* params, unsigned long long pledgedSrcSize); 1418 unsigned long long pledgedSrcSize);
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/ |
H A D | zstd.h | 462 ZSTDLIB_API size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx* cctx, unsigned long long pledgedSrcSize); 1729 unsigned long long pledgedSrcSize); 1767 unsigned long long pledgedSrcSize); 1798 unsigned long long pledgedSrcSize); 1815 ZSTDLIB_API size_t ZSTD_resetCStream(ZSTD_CStream* zcs, unsigned long long pledgedSrcSize); 1927 …d* dict, size_t dictSize, ZSTD_parameters params, unsigned long long pledgedSrcSize); /**< pledged… 1929 … cdict, ZSTD_frameParameters const fParams, unsigned long long const pledgedSrcSize); /* compres… 1930 …x(ZSTD_CCtx* cctx, const ZSTD_CCtx* preparedCCtx, unsigned long long pledgedSrcSize); /**< note: …
|
/freebsd/sys/contrib/zstd/zlibWrapper/ |
H A D | zstd_zlibwrapper.c | 165 unsigned long long pledgedSrcSize; member 202 …alizeCStream(ZWRAP_CCtx* zwc, const void* dict, size_t dictSize, unsigned long long pledgedSrcSize) in ZWRAP_initializeCStream() argument 207 if (!pledgedSrcSize) pledgedSrcSize = zwc->pledgedSrcSize; in ZWRAP_initializeCStream() 209 … ZSTD_parameters const params = ZSTD_getParams(zwc->compressionLevel, pledgedSrcSize, dictSize); in ZWRAP_initializeCStream() 213 …(int)pledgedSrcSize, params.cParams.windowLog, params.cParams.chainLog, params.cParams.hashLog, pa… in ZWRAP_initializeCStream() 218 initErr |= ZSTD_isError(ZSTD_CCtx_setPledgedSrcSize(zwc->zbc, pledgedSrcSize)); in ZWRAP_initializeCStream() 248 int ZWRAP_setPledgedSrcSize(z_streamp strm, unsigned long long pledgedSrcSize) in ZWRAP_setPledgedSrcSize() argument 253 zwc->pledgedSrcSize = pledgedSrcSize; in ZWRAP_setPledgedSrcSize() 390 … ZSTD_CCtx_setPledgedSrcSize(zwc->zbc, (flush == Z_FINISH) ? strm->avail_in : zwc->pledgedSrcSize); in z_deflate()
|
H A D | zstd_zlibwrapper.h | 52 int ZWRAP_setPledgedSrcSize(z_streamp strm, unsigned long long pledgedSrcSize);
|
/freebsd/sys/contrib/zstd/lib/ |
H A D | zstd.h | 488 ZSTDLIB_API size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx* cctx, unsigned long long pledgedSrcSize); 2207 unsigned long long pledgedSrcSize); 2245 unsigned long long pledgedSrcSize); 2277 unsigned long long pledgedSrcSize); 2298 size_t ZSTD_resetCStream(ZSTD_CStream* zcs, unsigned long long pledgedSrcSize); 2411 …x(ZSTD_CCtx* cctx, const ZSTD_CCtx* preparedCCtx, unsigned long long pledgedSrcSize); /**< note: … 2418 …d* dict, size_t dictSize, ZSTD_parameters params, unsigned long long pledgedSrcSize); /**< pledged… 2420 … cdict, ZSTD_frameParameters const fParams, unsigned long long const pledgedSrcSize); /* compres…
|
/freebsd/sys/contrib/zstd/programs/ |
H A D | fileio.c | 1348 U64 pledgedSrcSize = ZSTD_CONTENTSIZE_UNKNOWN; in FIO_compressZstdFrame() local 1365 pledgedSrcSize = fileSize; in FIO_compressZstdFrame() 1369 pledgedSrcSize = prefs->streamSrcSize; in FIO_compressZstdFrame() 1381 windowSize = UTIL_makeHumanReadableSize(MAX(1ULL, MIN(1ULL << windowLog, pledgedSrcSize))); in FIO_compressZstdFrame()
|
/freebsd/sys/contrib/zstd/ |
H A D | CHANGELOG | 382 api : change : when setting `pledgedSrcSize`, use `ZSTD_CONTENTSIZE_UNKNOWN` macro value to mean "u… 454 API : fix : enforced consistent rules for pledgedSrcSize==0 (#641)
|