HomeSort by: relevance | last modified time | path
    Searched refs:customMem (Results 1 - 17 of 17) sorted by relevancy

  /src/external/bsd/zstd/dist/lib/common/
allocations.h 26 MEM_STATIC void* ZSTD_customMalloc(size_t size, ZSTD_customMem customMem)
28 if (customMem.customAlloc)
29 return customMem.customAlloc(customMem.opaque, size);
33 MEM_STATIC void* ZSTD_customCalloc(size_t size, ZSTD_customMem customMem)
35 if (customMem.customAlloc) {
38 void* const ptr = customMem.customAlloc(customMem.opaque, size);
45 MEM_STATIC void ZSTD_customFree(void* ptr, ZSTD_customMem customMem)
48 if (customMem.customFree
    [all...]
pool.c 35 ZSTD_customMem customMem;
116 ZSTD_customMem customMem)
122 ctx = (POOL_ctx*)ZSTD_customCalloc(sizeof(POOL_ctx), customMem);
129 ctx->queue = (POOL_job*)ZSTD_customCalloc(ctx->queueSize * sizeof(POOL_job), customMem);
143 ctx->threads = (ZSTD_pthread_t*)ZSTD_customCalloc(numThreads * sizeof(ZSTD_pthread_t), customMem);
145 ctx->customMem = customMem;
186 ZSTD_customFree(ctx->queue, ctx->customMem);
187 ZSTD_customFree(ctx->threads, ctx->customMem);
188 ZSTD_customFree(ctx, ctx->customMem);
    [all...]
pool.h 30 ZSTD_customMem customMem);
  /src/external/bsd/zstd/dist/lib/deprecated/
zbuff_decompress.c 27 ZBUFF_DCtx* ZBUFF_createDCtx_advanced(ZSTD_customMem customMem)
29 return ZSTD_createDStream_advanced(customMem);
zbuff.h 195 ZBUFF_DEPRECATED("use ZSTD_createCStream_advanced") ZBUFF_CCtx* ZBUFF_createCCtx_advanced(ZSTD_customMem customMem);
199 ZBUFF_DEPRECATED("use ZSTD_createDStream_advanced") ZBUFF_DCtx* ZBUFF_createDCtx_advanced(ZSTD_customMem customMem);
zbuff_compress.c 59 ZBUFF_CCtx* ZBUFF_createCCtx_advanced(ZSTD_customMem customMem)
61 return ZSTD_createCStream_advanced(customMem);
  /src/external/bsd/zstd/dist/zlibWrapper/
zstd_zlibwrapper.c 121 static void* ZWRAP_customMalloc(size_t size, ZSTD_customMem customMem)
123 if (customMem.customAlloc)
124 return customMem.customAlloc(customMem.opaque, size);
128 static void* ZWRAP_customCalloc(size_t size, ZSTD_customMem customMem)
130 if (customMem.customAlloc) {
133 void* const ptr = customMem.customAlloc(customMem.opaque, size);
140 static void ZWRAP_customFree(void* ptr, ZSTD_customMem customMem)
143 if (customMem.customFree
    [all...]
  /src/external/bsd/zstd/dist/lib/decompress/
zstd_ddict.c 148 ZSTD_customMem customMem)
150 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL;
152 { ZSTD_DDict* const ddict = (ZSTD_DDict*) ZSTD_customMalloc(sizeof(ZSTD_DDict), customMem);
154 ddict->cMem = customMem;
zstd_decompress.c 131 static size_t ZSTD_DDictHashSet_expand(ZSTD_DDictHashSet* hashSet, ZSTD_customMem customMem) {
133 const ZSTD_DDict** newTable = (const ZSTD_DDict**)ZSTD_customCalloc(sizeof(ZSTD_DDict*) * newTableSize, customMem);
148 ZSTD_customFree((void*)oldTable, customMem);
178 static ZSTD_DDictHashSet* ZSTD_createDDictHashSet(ZSTD_customMem customMem) {
179 ZSTD_DDictHashSet* ret = (ZSTD_DDictHashSet*)ZSTD_customMalloc(sizeof(ZSTD_DDictHashSet), customMem);
183 ret->ddictPtrTable = (const ZSTD_DDict**)ZSTD_customCalloc(DDICT_HASHSET_TABLE_BASE_SIZE * sizeof(ZSTD_DDict*), customMem);
185 ZSTD_customFree(ret, customMem);
196 static void ZSTD_freeDDictHashSet(ZSTD_DDictHashSet* hashSet, ZSTD_customMem customMem) {
199 ZSTD_customFree((void*)hashSet->ddictPtrTable, customMem);
202 ZSTD_customFree(hashSet, customMem);
    [all...]
zstd_decompress_internal.h 152 ZSTD_customMem customMem;
  /src/external/bsd/zstd/dist/lib/legacy/
zstd_v07.c 79 ZSTDLIBv07_API ZSTDv07_DCtx* ZSTDv07_createDCtx_advanced(ZSTDv07_customMem customMem);
2895 ZSTDv07_customMem customMem;
2922 ZSTDv07_DCtx* ZSTDv07_createDCtx_advanced(ZSTDv07_customMem customMem)
2926 if (!customMem.customAlloc && !customMem.customFree)
2927 customMem = defaultCustomMem;
2929 if (!customMem.customAlloc || !customMem.customFree)
2932 dctx = (ZSTDv07_DCtx*) customMem.customAlloc(customMem.opaque, sizeof(ZSTDv07_DCtx))
    [all...]
  /src/external/bsd/zstd/dist/lib/compress/
zstd_cwksp.h 689 MEM_STATIC size_t ZSTD_cwksp_create(ZSTD_cwksp* ws, size_t size, ZSTD_customMem customMem) {
690 void* workspace = ZSTD_customMalloc(size, customMem);
697 MEM_STATIC void ZSTD_cwksp_free(ZSTD_cwksp* ws, ZSTD_customMem customMem) {
701 if (ptr != NULL && customMem.customFree != NULL) {
706 ZSTD_customFree(ptr, customMem);
zstd_compress.c 88 ZSTD_customMem customMem;
106 cctx->customMem = memManager;
114 ZSTD_CCtx* ZSTD_createCCtx_advanced(ZSTD_customMem customMem)
118 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL;
119 { ZSTD_CCtx* const cctx = (ZSTD_CCtx*)ZSTD_customMalloc(sizeof(ZSTD_CCtx), customMem);
121 ZSTD_initCCtx(cctx, customMem);
156 ZSTD_customFree(cctx->localDict.dictBuffer, cctx->customMem);
178 ZSTD_cwksp_free(&cctx->workspace, cctx->customMem);
189 if (!cctxInWorkspace) ZSTD_customFree(cctx, cctx->customMem);
    [all...]
zstd_compress_internal.h 423 ZSTD_customMem customMem;
488 ZSTD_customMem customMem;
zstdmt_compress.c 508 ZSTD_customMem cMem = params.customMem;
571 ZSTD_customMem cMem = serialState->params.customMem;
  /src/external/bsd/zstd/dist/lib/
zstd.h 1885 ZSTDLIB_STATIC_API ZSTD_CCtx* ZSTD_createCCtx_advanced(ZSTD_customMem customMem);
1886 ZSTDLIB_STATIC_API ZSTD_CStream* ZSTD_createCStream_advanced(ZSTD_customMem customMem);
1887 ZSTDLIB_STATIC_API ZSTD_DCtx* ZSTD_createDCtx_advanced(ZSTD_customMem customMem);
1888 ZSTDLIB_STATIC_API ZSTD_DStream* ZSTD_createDStream_advanced(ZSTD_customMem customMem);
1894 ZSTD_customMem customMem);
1920 ZSTD_customMem customMem);
1926 ZSTD_customMem customMem);
2561 * Memory is allocated as per ZSTD_DCtx::customMem.
  /src/external/bsd/zstd/dist/tests/
fuzzer.c 828 ZSTD_customMem customMem) = ZSTD_createDStream_advanced;
3184 ZSTD_customMem customMem = {NULL, NULL, NULL};
3194 cdict = ZSTD_createCDict_advanced2(dictBuffer, dictSize, ZSTD_dlm_byRef, ZSTD_dct_auto, cctxParams, customMem);
3211 ZSTD_customMem customMem = {NULL, NULL, NULL};
3221 cdict = ZSTD_createCDict_advanced2(dictBuffer, dictSize, ZSTD_dlm_byRef, ZSTD_dct_auto, cctxParams, customMem);
3238 ZSTD_customMem customMem = {NULL, NULL, NULL};
3251 cdict = ZSTD_createCDict_advanced2(dictBuffer, dictSize, ZSTD_dlm_byRef, ZSTD_dct_auto, cctxParams, customMem);

Completed in 54 milliseconds