/external/zstd/lib/compress/ |
D | zstd_lazy.h | 35 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], 38 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], 41 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], 44 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], 48 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], 51 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], 54 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], 57 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], 61 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], 64 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], [all …]
|
D | zstd_opt.h | 24 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], 27 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], 30 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], 35 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], 38 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], 42 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], 45 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
|
D | zstd_fast.c | 48 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_fast_generic() argument 152 ZSTD_storeSeq(seqStore, (size_t)(ip0-anchor), anchor, iend, offcode, mLength-MINMATCH); in ZSTD_compressBlock_fast_generic() 170 … ZSTD_storeSeq(seqStore, 0 /*litLen*/, anchor, iend, 0 /*offCode*/, rLength-MINMATCH); in ZSTD_compressBlock_fast_generic() 187 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_fast() argument 196 return ZSTD_compressBlock_fast_generic(ms, seqStore, rep, src, srcSize, 4); in ZSTD_compressBlock_fast() 198 return ZSTD_compressBlock_fast_generic(ms, seqStore, rep, src, srcSize, 5); in ZSTD_compressBlock_fast() 200 return ZSTD_compressBlock_fast_generic(ms, seqStore, rep, src, srcSize, 6); in ZSTD_compressBlock_fast() 202 return ZSTD_compressBlock_fast_generic(ms, seqStore, rep, src, srcSize, 7); in ZSTD_compressBlock_fast() 208 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_fast_dictMatchState_generic() argument 275 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, 0, mLength-MINMATCH); in ZSTD_compressBlock_fast_dictMatchState_generic() [all …]
|
D | zstd_double_fast.c | 52 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_doubleFast_generic() argument 151 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, 0, mLength-MINMATCH); in ZSTD_compressBlock_doubleFast_generic() 160 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, 0, mLength-MINMATCH); in ZSTD_compressBlock_doubleFast_generic() 253 …ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, offset + ZSTD_REP_MOVE, mLength-MINMATC… in ZSTD_compressBlock_doubleFast_generic() 284 ZSTD_storeSeq(seqStore, 0, anchor, iend, 0, repLength2-MINMATCH); in ZSTD_compressBlock_doubleFast_generic() 303 ZSTD_storeSeq(seqStore, 0, anchor, iend, 0, rLength-MINMATCH); in ZSTD_compressBlock_doubleFast_generic() 320 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_doubleFast() argument 328 … return ZSTD_compressBlock_doubleFast_generic(ms, seqStore, rep, src, srcSize, 4, ZSTD_noDict); in ZSTD_compressBlock_doubleFast() 330 … return ZSTD_compressBlock_doubleFast_generic(ms, seqStore, rep, src, srcSize, 5, ZSTD_noDict); in ZSTD_compressBlock_doubleFast() 332 … return ZSTD_compressBlock_doubleFast_generic(ms, seqStore, rep, src, srcSize, 6, ZSTD_noDict); in ZSTD_compressBlock_doubleFast() [all …]
|
D | zstd_opt.c | 773 rawSeqStore_t seqStore; /* External match candidates store for this block */ member 811 if (optLdm->seqStore.size == 0 || optLdm->seqStore.pos >= optLdm->seqStore.size) { in ZSTD_opt_getNextMatchAndUpdateSeqStore() 818 currSeq = optLdm->seqStore.seq[optLdm->seqStore.pos]; in ZSTD_opt_getNextMatchAndUpdateSeqStore() 819 assert(optLdm->seqStore.posInSequence <= currSeq.litLength + currSeq.matchLength); in ZSTD_opt_getNextMatchAndUpdateSeqStore() 821 literalsBytesRemaining = (optLdm->seqStore.posInSequence < currSeq.litLength) ? in ZSTD_opt_getNextMatchAndUpdateSeqStore() 822 currSeq.litLength - (U32)optLdm->seqStore.posInSequence : in ZSTD_opt_getNextMatchAndUpdateSeqStore() 825 currSeq.matchLength - ((U32)optLdm->seqStore.posInSequence - currSeq.litLength) : in ZSTD_opt_getNextMatchAndUpdateSeqStore() 832 ZSTD_optLdm_skipRawSeqStoreBytes(&optLdm->seqStore, blockBytesRemaining); in ZSTD_opt_getNextMatchAndUpdateSeqStore() 845 ZSTD_optLdm_skipRawSeqStoreBytes(&optLdm->seqStore, currBlockEndPos - currPosInBlock); in ZSTD_opt_getNextMatchAndUpdateSeqStore() 848 … ZSTD_optLdm_skipRawSeqStoreBytes(&optLdm->seqStore, literalsBytesRemaining + matchBytesRemaining); in ZSTD_opt_getNextMatchAndUpdateSeqStore() [all …]
|
D | zstd_fast.h | 24 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], 27 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], 30 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
|
D | zstd_double_fast.h | 24 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], 27 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], 30 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
|
D | zstd_lazy.c | 856 ZSTD_matchState_t* ms, seqStore_t* seqStore, in ZSTD_compressBlock_lazy_generic() argument 1076 ZSTD_storeSeq(seqStore, litLength, anchor, iend, (U32)offset, matchLength-MINMATCH); in ZSTD_compressBlock_lazy_generic() 1093 ZSTD_storeSeq(seqStore, 0, anchor, iend, 0, matchLength-MINMATCH); in ZSTD_compressBlock_lazy_generic() 1108 ZSTD_storeSeq(seqStore, 0, anchor, iend, 0, matchLength-MINMATCH); in ZSTD_compressBlock_lazy_generic() 1124 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_btlazy2() argument 1127 …return ZSTD_compressBlock_lazy_generic(ms, seqStore, rep, src, srcSize, search_binaryTree, 2, ZSTD… in ZSTD_compressBlock_btlazy2() 1131 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_lazy2() argument 1134 …return ZSTD_compressBlock_lazy_generic(ms, seqStore, rep, src, srcSize, search_hashChain, 2, ZSTD_… in ZSTD_compressBlock_lazy2() 1138 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_lazy() argument 1141 …return ZSTD_compressBlock_lazy_generic(ms, seqStore, rep, src, srcSize, search_hashChain, 1, ZSTD_… in ZSTD_compressBlock_lazy() [all …]
|
D | zstd_ldm.c | 598 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_ldm_blockCompress() argument 616 lastLLSize = blockCompressor(ms, seqStore, rep, src, srcSize); in ZSTD_ldm_blockCompress() 642 blockCompressor(ms, seqStore, rep, ip, sequence.litLength); in ZSTD_ldm_blockCompress() 649 ZSTD_storeSeq(seqStore, newLitLength, ip - newLitLength, iend, in ZSTD_ldm_blockCompress() 659 return blockCompressor(ms, seqStore, rep, ip, iend - ip); in ZSTD_ldm_blockCompress()
|
D | zstd_compress.c | 203 const seqStore_t* ZSTD_getSeqStore(const ZSTD_CCtx* ctx) { return &(ctx->seqStore); } in ZSTD_getSeqStore() 1701 zc->seqStore.litStart = ZSTD_cwksp_reserve_buffer(ws, blockSize + WILDCOPY_OVERLENGTH); in ZSTD_resetCCtx_internal() 1702 zc->seqStore.maxNbLit = blockSize; in ZSTD_resetCCtx_internal() 1723 zc->seqStore.maxNbSeq = maxNbSeq; in ZSTD_resetCCtx_internal() 1724 zc->seqStore.llCode = ZSTD_cwksp_reserve_buffer(ws, maxNbSeq * sizeof(BYTE)); in ZSTD_resetCCtx_internal() 1725 zc->seqStore.mlCode = ZSTD_cwksp_reserve_buffer(ws, maxNbSeq * sizeof(BYTE)); in ZSTD_resetCCtx_internal() 1726 zc->seqStore.ofCode = ZSTD_cwksp_reserve_buffer(ws, maxNbSeq * sizeof(BYTE)); in ZSTD_resetCCtx_internal() 1727 … zc->seqStore.sequencesStart = (seqDef*)ZSTD_cwksp_reserve_aligned(ws, maxNbSeq * sizeof(seqDef)); in ZSTD_resetCCtx_internal() 2457 ZSTD_resetSeqStore(&(zc->seqStore)); in ZSTD_buildSeqStore() 2488 ms, &zc->seqStore, in ZSTD_buildSeqStore() [all …]
|
D | zstd_ldm.h | 68 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
|
D | zstdmt_compress.c | 557 ZSTD_CCtx* jobCCtx, rawSeqStore_t seqStore, in ZSTDMT_serialState_update() argument 571 assert(seqStore.seq != NULL && seqStore.pos == 0 && in ZSTDMT_serialState_update() 572 seqStore.size == 0 && seqStore.capacity > 0); in ZSTDMT_serialState_update() 576 &serialState->ldmState, &seqStore, in ZSTDMT_serialState_update() 596 if (seqStore.size > 0) { in ZSTDMT_serialState_update() 598 jobCCtx, seqStore.seq, seqStore.size); in ZSTDMT_serialState_update()
|
D | zstd_compress_superblock.c | 407 static size_t ZSTD_seqDecompressedSize(seqStore_t const* seqStore, const seqDef* sequences, size_t … in ZSTD_seqDecompressedSize() argument 414 ZSTD_sequenceLength const seqLen = ZSTD_getSequenceLength(seqStore, sp); in ZSTD_seqDecompressedSize() 833 FORWARD_IF_ERROR(ZSTD_buildSuperBlockEntropy(&zc->seqStore, in ZSTD_compressSuperBlock() 840 return ZSTD_compressSubBlock_multi(&zc->seqStore, in ZSTD_compressSuperBlock()
|
D | zstd_compress_internal.h | 287 seqStore_t seqStore; /* sequences storage ptrs */ member 356 ZSTD_matchState_t* bs, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
|
/external/zstd/lib/common/ |
D | zstd_internal.h | 383 MEM_STATIC ZSTD_sequenceLength ZSTD_getSequenceLength(seqStore_t const* seqStore, seqDef const* seq) in ZSTD_getSequenceLength() argument 388 if (seqStore->longLengthPos == (U32)(seq - seqStore->sequencesStart)) { in ZSTD_getSequenceLength() 389 if (seqStore->longLengthID == 1) { in ZSTD_getSequenceLength() 392 if (seqStore->longLengthID == 2) { in ZSTD_getSequenceLength()
|
/external/zstd/tests/ |
D | decodecorpus.c | 623 static inline void initSeqStore(seqStore_t *seqStore) { in initSeqStore() argument 624 seqStore->maxNbSeq = MAX_NB_SEQ; in initSeqStore() 625 seqStore->maxNbLit = ZSTD_BLOCKSIZE_MAX; in initSeqStore() 626 seqStore->sequencesStart = SEQUENCE_BUFFER; in initSeqStore() 627 seqStore->litStart = SEQUENCE_LITERAL_BUFFER; in initSeqStore() 628 seqStore->llCode = SEQUENCE_LLCODE; in initSeqStore() 629 seqStore->mlCode = SEQUENCE_MLCODE; in initSeqStore() 630 seqStore->ofCode = SEQUENCE_OFCODE; in initSeqStore() 632 ZSTD_resetSeqStore(seqStore); in initSeqStore() 636 static U32 generateSequences(U32* seed, frame_t* frame, seqStore_t* seqStore, in generateSequences() argument [all …]
|
/external/zstd/lib/legacy/ |
D | zstd_v01.c | 1436 seqStore_t seqStore; member
|