]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Add files via upload
authorTrianglesPCT <dain.bray@gmail.com>
Fri, 14 May 2021 22:40:32 +0000 (16:40 -0600)
committerGitHub <noreply@github.com>
Fri, 14 May 2021 22:40:32 +0000 (16:40 -0600)
lib/compress/zstd_compress.c
lib/compress/zstd_lazy.c

index 27a2798ad4927ed2bd6fd29df68c8b96c7cf81cd..584678f7a7241e94b3f50c46f302e50270455afb 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(__AVX__)  || defined(__ARM_NEON))
+#if !defined(ZSTD_NO_INTRINSICS) && (defined(__SSE2__) || defined(_M_AMD64)  || defined(__ARM_NEON))
     int const kHasSIMD128 = 1;
 #else
     int const kHasSIMD128 = 0;
index 6df85e47c916205f471bcda5f5d8929c91bcad1a..50861891c021f75423304f41788b3070a08e9e89 100644 (file)
@@ -873,7 +873,7 @@ FORCE_INLINE_TEMPLATE size_t ZSTD_HcFindBestMatch_extDict_selectMLS (
 
 typedef U32 ZSTD_VecMask;   /* Clarifies when we are interacting with a U32 representing a mask of matches */
 
-#if !defined(ZSTD_NO_INTRINSICS) && (defined(__SSE2__) ||defined(__AVX__)) /* SIMD SSE version*/
+#if !defined(ZSTD_NO_INTRINSICS) && (defined(__SSE2__) ||defined(_M_AMD64)) /* SIMD SSE version*/
 
 #include <emmintrin.h>
 typedef __m128i ZSTD_Vec128;