Home
last modified time | relevance | path

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

/freebsd-12.1/sys/contrib/zstd/lib/compress/
H A Dzstd_compress.c704 size_t const neededSpace = entropySpace + blockStateSpace + tokenSpace + in ZSTD_estimateCCtxSize_usingCCtxParams() local
708 DEBUGLOG(5, "estimate workSpace : %u", (U32)neededSpace); in ZSTD_estimateCCtxSize_usingCCtxParams()
709 return sizeof(ZSTD_CCtx) + neededSpace; in ZSTD_estimateCCtxSize_usingCCtxParams()
993 size_t const neededSpace = entropySpace + blockStateSpace + ldmSpace + in ZSTD_resetCCtx_internal() local
997 (U32)(neededSpace>>10), (U32)(matchStateSize>>10), (U32)(bufferSpace>>10)); in ZSTD_resetCCtx_internal()
1000 if (zc->workSpaceSize < neededSpace) { /* too small : resize */ in ZSTD_resetCCtx_internal()
1003 (unsigned)(neededSpace>>10)); in ZSTD_resetCCtx_internal()
1009 zc->workSpace = ZSTD_malloc(neededSpace, zc->customMem); in ZSTD_resetCCtx_internal()
1011 zc->workSpaceSize = neededSpace; in ZSTD_resetCCtx_internal()
/freebsd-12.1/sys/contrib/zstd/lib/decompress/
H A Dzstd_decompress.c2438 size_t const neededSpace = in ZSTD_initStaticDDict() local
2444 if (workspaceSize < neededSpace) return NULL; in ZSTD_initStaticDDict()