From: Yann Collet Date: Tue, 10 Dec 2024 19:27:03 +0000 (-0800) Subject: codemod: ZSTD_sequenceLength -> ZSTD_SequenceLength X-Git-Tag: v1.5.7^2~48^2~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d4506bc9463607725e43131b71b2f09b7e1109d;p=thirdparty%2Fzstd.git codemod: ZSTD_sequenceLength -> ZSTD_SequenceLength --- diff --git a/lib/compress/zstd_compress_internal.h b/lib/compress/zstd_compress_internal.h index 121885e6c..92812192f 100644 --- a/lib/compress/zstd_compress_internal.h +++ b/lib/compress/zstd_compress_internal.h @@ -121,15 +121,15 @@ typedef struct { typedef struct { U32 litLength; U32 matchLength; -} ZSTD_sequenceLength; +} ZSTD_SequenceLength; /** - * Returns the ZSTD_sequenceLength for the given sequences. It handles the decoding of long sequences + * Returns the ZSTD_SequenceLength for the given sequences. It handles the decoding of long sequences * indicated by longLengthPos and longLengthType, and adds MINMATCH back to matchLength. */ -MEM_STATIC ZSTD_sequenceLength ZSTD_getSequenceLength(SeqStore_t const* seqStore, SeqDef const* seq) +MEM_STATIC ZSTD_SequenceLength ZSTD_getSequenceLength(SeqStore_t const* seqStore, SeqDef const* seq) { - ZSTD_sequenceLength seqLen; + ZSTD_SequenceLength seqLen; seqLen.litLength = seq->litLength; seqLen.matchLength = seq->mlBase + MINMATCH; if (seqStore->longLengthPos == (U32)(seq - seqStore->sequencesStart)) { diff --git a/lib/compress/zstd_compress_superblock.c b/lib/compress/zstd_compress_superblock.c index d74f44548..f2806c9ab 100644 --- a/lib/compress/zstd_compress_superblock.c +++ b/lib/compress/zstd_compress_superblock.c @@ -134,7 +134,7 @@ ZSTD_seqDecompressedSize(SeqStore_t const* seqStore, size_t litLengthSum = 0; size_t n; for (n=0; n