Home
last modified time | relevance | path

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

/linux-6.12.1/lib/zstd/compress/
Dzstd_ldm.c173 ldmState_t* ldmState, size_t hash, ldmParams_t const ldmParams) in ZSTD_ldm_getBucket() argument
175 return ldmState->hashTable + (hash << ldmParams.bucketSizeLog); in ZSTD_ldm_getBucket()
180 static void ZSTD_ldm_insertEntry(ldmState_t* ldmState, in ZSTD_ldm_insertEntry() argument
184 BYTE* const pOffset = ldmState->bucketOffsets + hash; in ZSTD_ldm_insertEntry()
187 *(ZSTD_ldm_getBucket(ldmState, hash, ldmParams) + offset) = entry; in ZSTD_ldm_insertEntry()
268 ldmState_t* ldmState, const BYTE* ip, in ZSTD_ldm_fillHashTable() argument
273 BYTE const* const base = ldmState->window.base; in ZSTD_ldm_fillHashTable()
276 size_t* const splits = ldmState->splitIndices; in ZSTD_ldm_fillHashTable()
298 ZSTD_ldm_insertEntry(ldmState, hash, entry, *params); in ZSTD_ldm_fillHashTable()
322 ldmState_t* ldmState, rawSeqStore_t* rawSeqStore, in ZSTD_ldm_generateSequences_internal() argument
[all …]
Dzstd_compress.c1876 zc->ldmState.bucketOffsets = ZSTD_cwksp_reserve_buffer(ws, numBuckets); in ZSTD_resetCCtx_internal()
1877 ZSTD_memset(zc->ldmState.bucketOffsets, 0, numBuckets); in ZSTD_resetCCtx_internal()
1901 …zc->ldmState.hashTable = (ldmEntry_t*)ZSTD_cwksp_reserve_aligned(ws, ldmHSize * sizeof(ldmEntry_t)… in ZSTD_resetCCtx_internal()
1902 ZSTD_memset(zc->ldmState.hashTable, 0, ldmHSize * sizeof(ldmEntry_t)); in ZSTD_resetCCtx_internal()
1906 ZSTD_window_init(&zc->ldmState.window); in ZSTD_resetCCtx_internal()
1907 zc->ldmState.loadedDictEnd = 0; in ZSTD_resetCCtx_internal()
2780 FORWARD_IF_ERROR(ZSTD_ldm_generateSequences(&zc->ldmState, &ldmSeqStore, in ZSTD_buildSeqStore()
4050 ZSTD_window_update(&cctx->ldmState.window, src, srcSize, /* forceNonContiguous */ 0); in ZSTD_compressContinue_internal()
4427 &cctx->ldmState, &cctx->workspace, &cctx->appliedParams, cdict->dictContent, in ZSTD_compressBegin_internal()
4432 &cctx->ldmState, &cctx->workspace, &cctx->appliedParams, dict, dictSize, in ZSTD_compressBegin_internal()
Dzstd_compress_internal.h382 ldmState_t ldmState; /* long distance matching state */ member