From: Yann Collet Date: Wed, 8 Jan 2025 07:40:49 +0000 (-0800) Subject: no need for specialized variant X-Git-Tag: v1.5.7^2~36^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db3d48823a75a12a5ad9221e5a39191ff0044d3a;p=thirdparty%2Fzstd.git no need for specialized variant the branch is not in the hot loop --- diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c index beff0aae6..8e49169b1 100644 --- a/lib/compress/zstd_compress.c +++ b/lib/compress/zstd_compress.c @@ -7297,7 +7297,7 @@ convertSequences_noRepcodes(SeqDef* dstSeqs, * This is helpful to generate a lean main pipeline, improving performance. * It may be re-inserted later. */ -static size_t ZSTD_convertBlockSequences_internal(ZSTD_CCtx* cctx, +size_t ZSTD_convertBlockSequences(ZSTD_CCtx* cctx, const ZSTD_Sequence* const inSeqs, size_t nbSequences, int repcodeResolution) { @@ -7379,20 +7379,6 @@ static size_t ZSTD_convertBlockSequences_internal(ZSTD_CCtx* cctx, return 0; } -static size_t ZSTD_convertBlockSequences_noRepcode(ZSTD_CCtx* cctx, - const ZSTD_Sequence* const inSeqs, size_t nbSequences) -{ - return ZSTD_convertBlockSequences_internal(cctx, inSeqs, nbSequences, 0); -} - -size_t ZSTD_convertBlockSequences(ZSTD_CCtx* cctx, - const ZSTD_Sequence* const inSeqs, size_t nbSequences, - int repcodeResolution) -{ - (void)repcodeResolution; - return ZSTD_convertBlockSequences_internal(cctx, inSeqs, nbSequences, 0); -} - #if defined(__AVX2__) /* C90-compatible alignment macro (GCC/Clang). Adjust for other compilers if needed. */