Home
last modified time | relevance | path

Searched refs:neededSpace (Results 1 – 3 of 3) sorted by relevance

/freebsd-13.1/sys/contrib/zstd/lib/decompress/
H A Dzstd_ddict.c193 size_t const neededSpace = sizeof(ZSTD_DDict) in ZSTD_initStaticDDict() local
199 if (sBufferSize < neededSpace) return NULL; in ZSTD_initStaticDDict()
/freebsd-13.1/sys/contrib/zstd/lib/compress/
H A Dzstd_compress.c1328 size_t const neededSpace = in ZSTD_estimateCCtxSize_usingCCtxParams_internal() local
1338 DEBUGLOG(5, "estimate workspace : %u", (U32)neededSpace); in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
1339 return neededSpace; in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
1637 size_t const neededSpace = in ZSTD_resetCCtx_internal() local
1641 FORWARD_IF_ERROR(neededSpace, "cctx size estimate failed!"); in ZSTD_resetCCtx_internal()
1647 int const workspaceTooSmall = ZSTD_cwksp_sizeof(ws) < neededSpace; in ZSTD_resetCCtx_internal()
1648 int const workspaceWasteful = ZSTD_cwksp_check_wasteful(ws, neededSpace); in ZSTD_resetCCtx_internal()
1650 DEBUGLOG(4, "Need %zu B workspace", neededSpace); in ZSTD_resetCCtx_internal()
1656 neededSpace >> 10); in ZSTD_resetCCtx_internal()
1754 assert(ZSTD_cwksp_used(ws) >= neededSpace && in ZSTD_resetCCtx_internal()
[all …]
/freebsd-13.1/sys/contrib/openzfs/module/zstd/lib/
H A Dzstd.c14234 size_t const neededSpace = in ZSTD_estimateCCtxSize_usingCCtxParams() local
14244 DEBUGLOG(5, "estimate workspace : %u", (U32)neededSpace); in ZSTD_estimateCCtxSize_usingCCtxParams()
14245 return neededSpace; in ZSTD_estimateCCtxSize_usingCCtxParams()
14550 size_t const neededSpace = in ZSTD_resetCCtx_internal() local
14560 int const workspaceTooSmall = ZSTD_cwksp_sizeof(ws) < neededSpace; in ZSTD_resetCCtx_internal()
14561 int const workspaceWasteful = ZSTD_cwksp_check_wasteful(ws, neededSpace); in ZSTD_resetCCtx_internal()
14564 neededSpace>>10, matchStateSize>>10, bufferSpace>>10); in ZSTD_resetCCtx_internal()
14570 neededSpace >> 10); in ZSTD_resetCCtx_internal()
14577 FORWARD_IF_ERROR(ZSTD_cwksp_create(ws, neededSpace, zc->customMem), ""); in ZSTD_resetCCtx_internal()
24391 size_t const neededSpace = sizeof(ZSTD_DDict) in ZSTD_initStaticDDict() local
[all …]