Skip to content

Commit 59c2e33

Browse files
Merge pull request #4230 from facebook/variedOutput
Do not vary row matchfinder selection based on availability of SSE2/Neon
2 parents 1548bfc + d88651e commit 59c2e33

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

lib/compress/zstd_compress.c

+1-10
Original file line numberDiff line numberDiff line change
@@ -237,19 +237,10 @@ static int ZSTD_rowMatchFinderUsed(const ZSTD_strategy strategy, const ZSTD_Para
237237
/* Returns row matchfinder usage given an initial mode and cParams */
238238
static ZSTD_ParamSwitch_e ZSTD_resolveRowMatchFinderMode(ZSTD_ParamSwitch_e mode,
239239
const ZSTD_compressionParameters* const cParams) {
240-
#if defined(ZSTD_ARCH_X86_SSE2) || defined(ZSTD_ARCH_ARM_NEON)
241-
int const kHasSIMD128 = 1;
242-
#else
243-
int const kHasSIMD128 = 0;
244-
#endif
245240
if (mode != ZSTD_ps_auto) return mode; /* if requested enabled, but no SIMD, we still will use row matchfinder */
246241
mode = ZSTD_ps_disable;
247242
if (!ZSTD_rowMatchFinderSupported(cParams->strategy)) return mode;
248-
if (kHasSIMD128) {
249-
if (cParams->windowLog > 14) mode = ZSTD_ps_enable;
250-
} else {
251-
if (cParams->windowLog > 17) mode = ZSTD_ps_enable;
252-
}
243+
if (cParams->windowLog > 14) mode = ZSTD_ps_enable;
253244
return mode;
254245
}
255246

0 commit comments

Comments
 (0)