Home
last modified time | relevance | path

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

/external/zstd/lib/compress/
Dzstd_ldm.c95 ldmState_t* ldmState, size_t hash, ldmParams_t const ldmParams) in ZSTD_ldm_getBucket() argument
97 return ldmState->hashTable + (hash << ldmParams.bucketSizeLog); in ZSTD_ldm_getBucket()
102 static void ZSTD_ldm_insertEntry(ldmState_t* ldmState, in ZSTD_ldm_insertEntry() argument
106 BYTE* const bucketOffsets = ldmState->bucketOffsets; in ZSTD_ldm_insertEntry()
107 *(ZSTD_ldm_getBucket(ldmState, hash, ldmParams) + bucketOffsets[hash]) = entry; in ZSTD_ldm_insertEntry()
122 static void ZSTD_ldm_makeEntryAndInsertByTag(ldmState_t* ldmState, in ZSTD_ldm_makeEntryAndInsertByTag() argument
136 ZSTD_ldm_insertEntry(ldmState, hash, entry, ldmParams); in ZSTD_ldm_makeEntryAndInsertByTag()
271 ldmState_t* ldmState, rawSeqStore_t* rawSeqStore, in ZSTD_ldm_generateSequences_internal() argument
275 int const extDict = ZSTD_window_hasExtDict(ldmState->window); in ZSTD_ldm_generateSequences_internal()
277 U64 const hashPower = ldmState->hashPower; in ZSTD_ldm_generateSequences_internal()
[all …]
Dzstdmt_compress.c450 ldmState_t ldmState; member
475 serialState->ldmState.hashPower = in ZSTDMT_serialState_reset()
496 ZSTD_window_init(&serialState->ldmState.window); in ZSTDMT_serialState_reset()
498 … if (serialState->ldmState.hashTable == NULL || serialState->params.ldmParams.hashLog < hashLog) { in ZSTDMT_serialState_reset()
499 ZSTD_customFree(serialState->ldmState.hashTable, cMem); in ZSTDMT_serialState_reset()
500 serialState->ldmState.hashTable = (ldmEntry_t*)ZSTD_customMalloc(hashSize, cMem); in ZSTDMT_serialState_reset()
502 if (serialState->ldmState.bucketOffsets == NULL || prevBucketLog < bucketLog) { in ZSTDMT_serialState_reset()
503 ZSTD_customFree(serialState->ldmState.bucketOffsets, cMem); in ZSTDMT_serialState_reset()
504 serialState->ldmState.bucketOffsets = (BYTE*)ZSTD_customMalloc(bucketSize, cMem); in ZSTDMT_serialState_reset()
506 if (!serialState->ldmState.hashTable || !serialState->ldmState.bucketOffsets) in ZSTDMT_serialState_reset()
[all …]
Dzstd_compress.c1618 zc->ldmState.hashPower = ZSTD_rollingHash_primePower(params.ldmParams.minMatchLength); in ZSTD_resetCCtx_internal()
1717 zc->ldmState.bucketOffsets = ZSTD_cwksp_reserve_buffer(ws, ldmBucketSize); in ZSTD_resetCCtx_internal()
1718 ZSTD_memset(zc->ldmState.bucketOffsets, 0, ldmBucketSize); in ZSTD_resetCCtx_internal()
1741 …zc->ldmState.hashTable = (ldmEntry_t*)ZSTD_cwksp_reserve_aligned(ws, ldmHSize * sizeof(ldmEntry_t)… in ZSTD_resetCCtx_internal()
1742 ZSTD_memset(zc->ldmState.hashTable, 0, ldmHSize * sizeof(ldmEntry_t)); in ZSTD_resetCCtx_internal()
1746 ZSTD_window_init(&zc->ldmState.window); in ZSTD_resetCCtx_internal()
1747 ZSTD_window_clear(&zc->ldmState.window); in ZSTD_resetCCtx_internal()
1748 zc->ldmState.loadedDictEnd = 0; in ZSTD_resetCCtx_internal()
2498 FORWARD_IF_ERROR(ZSTD_ldm_generateSequences(&zc->ldmState, &ldmSeqStore, in ZSTD_buildSeqStore()
3017 ZSTD_window_update(&cctx->ldmState.window, src, srcSize); in ZSTD_compressContinue_internal()
[all …]
Dzstd_compress_internal.h288 ldmState_t ldmState; /* long distance matching state */ member