]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix : no AVX2 for Visual 2008 and older
authorYann Collet <yann.collet.73@gmail.com>
Thu, 29 Jan 2015 06:00:43 +0000 (07:00 +0100)
committerYann Collet <yann.collet.73@gmail.com>
Thu, 29 Jan 2015 06:00:43 +0000 (07:00 +0100)
lib/zstd.c
programs/Makefile

index 6119057840f186c519e8066265d47405603667f4..4f2fe472b578f66a0e1631e415a1d060484c67c8 100644 (file)
@@ -77,7 +77,7 @@
 /********************************************************
 *  Compiler specifics
 *********************************************************/
-#if (!(defined(_MSC_VER) && (_MSC_VER<=1400)))   /* exclude Visual 2005 and below */
+#if (!(defined(_MSC_VER) && (_MSC_VER<=1500)))   /* exclude Visual 2008 and below */
 #  include <immintrin.h>   /* AVX2 intrinsics */
 #endif
 
@@ -140,7 +140,7 @@ static const U32 ZSTD_magicNumber = 0xFD2FB51C;
 #define MB *(1<<20)
 
 #define BLOCKSIZE (128 KB)                 // define, for static allocation
-static const size_t g_maxBlockSize = 128 KB;   //((size_t)1 << 22) - 1;
+static const size_t g_maxBlockSize = 128 KB;
 static const U32 g_maxDistance = 512 KB;
 static const U32 g_searchStrength = 8;
 
index 23a482dec193103d0cfb94e3d4e9a6e17fe599c1..c3335a47f6cc070e646188c4bc566498513697f5 100644 (file)
@@ -150,7 +150,7 @@ test-mem: zstd datagen fuzzer fullbench
        valgrind --leak-check=yes ./zstd -vf tmp /dev/null
        ./datagen -g128MB > tmp
        valgrind --leak-check=yes ./zstd -vf tmp /dev/null
-       rm tmp
+       @rm tmp
        valgrind --leak-check=yes ./fuzzer -i128 -t1
        valgrind --leak-check=yes ./fullbench -i1