Home
last modified time | relevance | path

Searched refs:workspace (Results 1 – 15 of 15) sorted by relevance

/lib/zstd/
Dzstd_common.c35 ZSTD_customMem ZSTD_initStack(void *workspace, size_t workspaceSize) in ZSTD_initStack() argument
37 ZSTD_customMem stackMem = {ZSTD_stackAlloc, ZSTD_stackFree, workspace}; in ZSTD_initStack()
38 ZSTD_stack *stack = (ZSTD_stack *)workspace; in ZSTD_initStack()
40 if (!workspace || workspaceSize < sizeof(ZSTD_stack) || workspace != ZSTD_PTR_ALIGN(workspace)) { in ZSTD_initStack()
45 stack->ptr = workspace; in ZSTD_initStack()
46 stack->end = (char *)workspace + workspaceSize; in ZSTD_initStack()
Dhuf.h104 …tx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace, size_t workspac…
105 …sp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace,
107 …sp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace,
109 …sp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace,
130 …onst HUF_CElt *CTable, unsigned maxSymbolValue, unsigned huffLog, void *workspace, size_t workspac…
160 void *workspace, size_t workspaceSize);
164 …CTable, unsigned maxSymbolValue, const void *src, size_t srcSize, void *workspace, size_t workspac…
180 size_t HUF_readDTableX2_wksp(HUF_DTable *DTable, const void *src, size_t srcSize, void *workspace, …
181 size_t HUF_readDTableX4_wksp(HUF_DTable *DTable, const void *src, size_t srcSize, void *workspace, …
201 …tx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace, size_t workspac…
[all …]
Dhuf_decompress.c90 size_t HUF_readDTableX2_wksp(HUF_DTable *DTable, const void *src, size_t srcSize, void *workspace, … in HUF_readDTableX2_wksp() argument
102 rankVal = (U32 *)workspace + spaceUsed32; in HUF_readDTableX2_wksp()
104 huffWeight = (BYTE *)((U32 *)workspace + spaceUsed32); in HUF_readDTableX2_wksp()
109 workspace = (U32 *)workspace + spaceUsed32; in HUF_readDTableX2_wksp()
115 …, HUF_SYMBOLVALUE_MAX + 1, rankVal, &nbSymbols, &tableLog, src, srcSize, workspace, workspaceSize); in HUF_readDTableX2_wksp()
232 …tx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace, size_t workspac… in HUF_decompress1X2_DCtx_wksp() argument
236 size_t const hSize = HUF_readDTableX2_wksp(DCtx, cSrc, cSrcSize, workspace, workspaceSize); in HUF_decompress1X2_DCtx_wksp()
363 …tx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace, size_t workspac… in HUF_decompress4X2_DCtx_wksp() argument
367 size_t const hSize = HUF_readDTableX2_wksp(dctx, cSrc, cSrcSize, workspace, workspaceSize); in HUF_decompress4X2_DCtx_wksp()
482 size_t HUF_readDTableX4_wksp(HUF_DTable *DTable, const void *src, size_t srcSize, void *workspace, … in HUF_readDTableX4_wksp() argument
[all …]
Dfse_decompress.c88 …t *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void *workspace, size_t workspac… in FSE_buildDTable_wksp() argument
92 U16 *symbolNext = (U16 *)workspace; in FSE_buildDTable_wksp()
287 … dstCapacity, const void *cSrc, size_t cSrcSize, unsigned maxLog, void *workspace, size_t workspac… in FSE_decompress_wksp() argument
301 dt = (FSE_DTable *)((U32 *)workspace + spaceUsed32); in FSE_decompress_wksp()
303 counting = (short *)((U32 *)workspace + spaceUsed32); in FSE_decompress_wksp()
308 workspace = (U32 *)workspace + spaceUsed32; in FSE_decompress_wksp()
322 CHECK_F(FSE_buildDTable_wksp(dt, counting, maxSymbolValue, tableLog, workspace, workspaceSize)); in FSE_decompress_wksp()
Dhuf_compress.c82 …oid *dst, size_t dstSize, const void *weightTable, size_t wtSize, void *workspace, size_t workspac… in HUF_compressWeights_wksp() argument
98 CTable = (FSE_CTable *)((U32 *)workspace + spaceUsed32); in HUF_compressWeights_wksp()
100 count = (U32 *)workspace + spaceUsed32; in HUF_compressWeights_wksp()
102 norm = (S16 *)((U32 *)workspace + spaceUsed32); in HUF_compressWeights_wksp()
107 workspace = (U32 *)workspace + spaceUsed32; in HUF_compressWeights_wksp()
133 CHECK_F(FSE_buildCTable_wksp(CTable, norm, maxSymbolValue, tableLog, workspace, workspaceSize)); in HUF_compressWeights_wksp()
152 …DstSize, const HUF_CElt *CTable, U32 maxSymbolValue, U32 huffLog, void *workspace, size_t workspac… in HUF_writeCTable_wksp() argument
161 bitsToWeight = (BYTE *)((U32 *)workspace + spaceUsed32); in HUF_writeCTable_wksp()
163 huffWeight = (BYTE *)((U32 *)workspace + spaceUsed32); in HUF_writeCTable_wksp()
168 workspace = (U32 *)workspace + spaceUsed32; in HUF_writeCTable_wksp()
[all …]
Ddecompress.c73 U64 workspace[HUF_DECOMPRESS_WORKSPACE_SIZE_U32 / 2]; member
141 ZSTD_DCtx *ZSTD_initDCtx(void *workspace, size_t workspaceSize) in ZSTD_initDCtx() argument
143 ZSTD_customMem const stackMem = ZSTD_initStack(workspace, workspaceSize); in ZSTD_initDCtx()
488 dctx->entropy.workspace, sizeof(dctx->entropy.workspace)) in ZSTD_decodeLiteralsBlock()
490 dctx->entropy.workspace, sizeof(dctx->entropy.workspace))))) in ZSTD_decodeLiteralsBlock()
753 …size_t srcSize, const FSE_decode_t4 *defaultTable, U32 flagRepeatTable, void *workspace, size_t wo… in ZSTD_buildSeqTable() argument
773 S16 *norm = (S16 *)workspace; in ZSTD_buildSeqTable()
778 workspace = (U32 *)workspace + spaceUsed32; in ZSTD_buildSeqTable()
786 FSE_buildDTable_wksp(DTableSpace, norm, max, tableLog, workspace, workspaceSize); in ZSTD_buildSeqTable()
837 … LL_defaultDTable, dctx->fseEntropy, dctx->entropy.workspace, sizeof(dctx->entropy.workspace)); in ZSTD_decodeSeqHeaders()
[all …]
Dentropy_common.c167 …*nbSymbolsPtr, U32 *tableLogPtr, const void *src, size_t srcSize, void *workspace, size_t workspac… in HUF_readStats_wksp() argument
197 …oSize = FSE_decompress_wksp(huffWeight, hwSize - 1, ip + 1, iSize, 6, workspace, workspaceSize); /… in HUF_readStats_wksp()
Dfse_compress.c92 …t *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void *workspace, size_t workspac… in FSE_buildCTable_wksp() argument
107 cumul = (U32 *)workspace + spaceUsed32; in FSE_buildCTable_wksp()
109 tableSymbol = (FSE_FUNCTION_TYPE *)((U32 *)workspace + spaceUsed32); in FSE_buildCTable_wksp()
114 workspace = (U32 *)workspace + spaceUsed32; in FSE_buildCTable_wksp()
Dfse.h190 …t *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void *workspace, size_t workspac…
284 … dstCapacity, const void *cSrc, size_t cSrcSize, unsigned maxLog, void *workspace, size_t workspac…
Dcompress.c122 ZSTD_CCtx *ZSTD_initCCtx(void *workspace, size_t workspaceSize) in ZSTD_initCCtx() argument
124 ZSTD_customMem const stackMem = ZSTD_initStack(workspace, workspaceSize); in ZSTD_initCCtx()
606 U32 *workspace; in ZSTD_compressSequences_internal() local
615 workspace = (U32 *)zc->tmpCounters + spaceUsed32; in ZSTD_compressSequences_internal()
653 size_t const mostFrequent = FSE_countFast_wksp(count, &max, llCodeTable, nbSeq, workspace); in ZSTD_compressSequences_internal()
661 …FSE_buildCTable_wksp(CTable_LitLength, LL_defaultNorm, MaxLL, LL_defaultNormLog, workspace, worksp… in ZSTD_compressSequences_internal()
677 FSE_buildCTable_wksp(CTable_LitLength, norm, max, tableLog, workspace, workspaceSize); in ZSTD_compressSequences_internal()
685 size_t const mostFrequent = FSE_countFast_wksp(count, &max, ofCodeTable, nbSeq, workspace); in ZSTD_compressSequences_internal()
693 …FSE_buildCTable_wksp(CTable_OffsetBits, OF_defaultNorm, MaxOff, OF_defaultNormLog, workspace, work… in ZSTD_compressSequences_internal()
709 FSE_buildCTable_wksp(CTable_OffsetBits, norm, max, tableLog, workspace, workspaceSize); in ZSTD_compressSequences_internal()
[all …]
Dzstd_internal.h248 ZSTD_customMem ZSTD_initStack(void *workspace, size_t workspaceSize);
/lib/zlib_inflate/
Dinfutil.c20 strm->workspace = kmalloc(zlib_inflate_workspacesize(), GFP_KERNEL); in zlib_inflate_blob()
21 if (strm->workspace == NULL) in zlib_inflate_blob()
44 kfree(strm->workspace); in zlib_inflate_blob()
Dinfutil.h37 #define WS(strm) ((struct inflate_workspace *)(strm->workspace))
/lib/
Ddecompress_inflate.c82 strm->workspace = malloc(flush ? zlib_inflate_workspacesize() : in __gunzip()
89 if (strm->workspace == NULL) { in __gunzip()
186 free(strm->workspace); in __gunzip()
/lib/zlib_deflate/
Ddeflate.c213 mem = (deflate_workspace *) strm->workspace; in zlib_deflateInit2()