Searched refs:neededSpace (Results 1 – 4 of 4) sorted by relevance
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/ |
H A D | zstd_ddict.c | 193 size_t const neededSpace = sizeof(ZSTD_DDict) in ZSTD_initStaticDDict() local 199 if (sBufferSize < neededSpace) return NULL; in ZSTD_initStaticDDict()
|
/freebsd/sys/contrib/zstd/lib/decompress/ |
H A D | zstd_ddict.c | 193 size_t const neededSpace = sizeof(ZSTD_DDict) in ZSTD_initStaticDDict() local 199 if (sBufferSize < neededSpace) return NULL; in ZSTD_initStaticDDict()
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/ |
H A D | zstd_compress.c | 1152 size_t const neededSpace = in ZSTD_estimateCCtxSize_usingCCtxParams() local 1162 DEBUGLOG(5, "estimate workspace : %u", (U32)neededSpace); in ZSTD_estimateCCtxSize_usingCCtxParams() 1163 return neededSpace; in ZSTD_estimateCCtxSize_usingCCtxParams() 1468 size_t const neededSpace = in ZSTD_resetCCtx_internal() local 1478 int const workspaceTooSmall = ZSTD_cwksp_sizeof(ws) < neededSpace; in ZSTD_resetCCtx_internal() 1479 int const workspaceWasteful = ZSTD_cwksp_check_wasteful(ws, neededSpace); in ZSTD_resetCCtx_internal() 1482 neededSpace>>10, matchStateSize>>10, bufferSpace>>10); in ZSTD_resetCCtx_internal() 1488 neededSpace >> 10); in ZSTD_resetCCtx_internal() 1495 FORWARD_IF_ERROR(ZSTD_cwksp_create(ws, neededSpace, zc->customMem), ""); in ZSTD_resetCCtx_internal()
|
/freebsd/sys/contrib/zstd/lib/compress/ |
H A D | zstd_compress.c | 1489 size_t const neededSpace = in ZSTD_estimateCCtxSize_usingCCtxParams_internal() local 1499 DEBUGLOG(5, "estimate workspace : %u", (U32)neededSpace); in ZSTD_estimateCCtxSize_usingCCtxParams_internal() 1500 return neededSpace; in ZSTD_estimateCCtxSize_usingCCtxParams_internal() 1874 size_t const neededSpace = in ZSTD_resetCCtx_internal() local 1880 FORWARD_IF_ERROR(neededSpace, "cctx size estimate failed!"); in ZSTD_resetCCtx_internal() 1885 int const workspaceTooSmall = ZSTD_cwksp_sizeof(ws) < neededSpace; in ZSTD_resetCCtx_internal() 1886 int const workspaceWasteful = ZSTD_cwksp_check_wasteful(ws, neededSpace); in ZSTD_resetCCtx_internal() 1888 DEBUGLOG(4, "Need %zu B workspace", neededSpace); in ZSTD_resetCCtx_internal() 1894 neededSpace >> 10); in ZSTD_resetCCtx_internal() 1901 FORWARD_IF_ERROR(ZSTD_cwksp_create(ws, neededSpace, zc->customMem), ""); in ZSTD_resetCCtx_internal() [all …]
|