From db3d48823a75a12a5ad9221e5a39191ff0044d3a Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Tue, 7 Jan 2025 23:40:49 -0800 Subject: [PATCH] no need for specialized variant the branch is not in the hot loop --- lib/compress/zstd_compress.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) 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. */