]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Add files via upload
authorTrianglesPCT <dain.bray@gmail.com>
Fri, 14 May 2021 22:33:07 +0000 (16:33 -0600)
committerGitHub <noreply@github.com>
Fri, 14 May 2021 22:33:07 +0000 (16:33 -0600)
msvc

lib/compress/zstd_compress.c

index b7ee2980a776d1d3c57d3eb2c9f1538559d63359..27a2798ad4927ed2bd6fd29df68c8b96c7cf81cd 100644 (file)
@@ -222,7 +222,7 @@ static int ZSTD_rowMatchFinderUsed(const ZSTD_strategy strategy, const ZSTD_useR
 /* Returns row matchfinder usage enum given an initial mode and cParams */
 static ZSTD_useRowMatchFinderMode_e ZSTD_resolveRowMatchFinderMode(ZSTD_useRowMatchFinderMode_e mode,
                                                                    const ZSTD_compressionParameters* const cParams) {
-#if !defined(ZSTD_NO_INTRINSICS) && (defined(__SSE2__) || defined(__ARM_NEON))
+#if !defined(ZSTD_NO_INTRINSICS) && (defined(__SSE2__) || defined(__AVX__)  || defined(__ARM_NEON))
     int const kHasSIMD128 = 1;
 #else
     int const kHasSIMD128 = 0;