Lines Matching full:sequence

417             /* If a split point would generate a sequence overlapping with  in ZSTD_ldm_generateSequences_internal()
478 /* Out of sequence storage */ in ZSTD_ldm_generateSequences_internal()
573 * * Try invalidation after the sequence generation and test the in ZSTD_ldm_generateSequences()
576 * NOTE: Because of dictionaries + sequence splitting we MUST make sure in ZSTD_ldm_generateSequences()
577 * that any offset used is valid at the END of the sequence, since it may in ZSTD_ldm_generateSequences()
589 * newly generated sequence, or add the `newLeftoverSize` if none are in ZSTD_ldm_generateSequences()
635 * If the sequence length is longer than remaining then the sequence is split
638 * Returns the current sequence to handle, or if the rest of the block should
639 * be literals, it returns a sequence with offset == 0.
644 rawSeq sequence = rawSeqStore->seq[rawSeqStore->pos]; in maybeSplitSequence() local
645 assert(sequence.offset > 0); in maybeSplitSequence()
646 /* Likely: No partial sequence */ in maybeSplitSequence()
647 if (remaining >= sequence.litLength + sequence.matchLength) { in maybeSplitSequence()
649 return sequence; in maybeSplitSequence()
651 /* Cut the sequence short (offset == 0 ==> rest is literals). */ in maybeSplitSequence()
652 if (remaining <= sequence.litLength) { in maybeSplitSequence()
653 sequence.offset = 0; in maybeSplitSequence()
654 } else if (remaining < sequence.litLength + sequence.matchLength) { in maybeSplitSequence()
655 sequence.matchLength = remaining - sequence.litLength; in maybeSplitSequence()
656 if (sequence.matchLength < minMatch) { in maybeSplitSequence()
657 sequence.offset = 0; in maybeSplitSequence()
662 return sequence; in maybeSplitSequence()
709 /* Loop through each sequence and apply the block compressor to the literals */ in ZSTD_ldm_blockCompress()
712 rawSeq const sequence = maybeSplitSequence(rawSeqStore, in ZSTD_ldm_blockCompress() local
715 if (sequence.offset == 0) in ZSTD_ldm_blockCompress()
718 assert(ip + sequence.litLength + sequence.matchLength <= iend); in ZSTD_ldm_blockCompress()
724 …s %u : calling block compressor on segment of size %u", (unsigned)(ip-istart), sequence.litLength); in ZSTD_ldm_blockCompress()
728 blockCompressor(ms, seqStore, rep, ip, sequence.litLength); in ZSTD_ldm_blockCompress()
729 ip += sequence.litLength; in ZSTD_ldm_blockCompress()
733 rep[0] = sequence.offset; in ZSTD_ldm_blockCompress()
734 /* Store the sequence */ in ZSTD_ldm_blockCompress()
736 OFFSET_TO_OFFBASE(sequence.offset), in ZSTD_ldm_blockCompress()
737 sequence.matchLength); in ZSTD_ldm_blockCompress()
738 ip += sequence.matchLength; in ZSTD_ldm_blockCompress()