]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix the problem that enables DYNAMIC_BMI2 macro by mistake on ARM architecture with...
authortaigacon <taigacon@gmail.com>
Mon, 23 Apr 2018 22:41:50 +0000 (06:41 +0800)
committerNick Terrell <nickrterrell@gmail.com>
Mon, 23 Apr 2018 22:41:50 +0000 (15:41 -0700)
lib/common/compiler.h

index e90a3bcde36cee2c809f2c704ffa529750a03ce9..b588e110403f4dd30d2dc080a0aaac36bca28a6c 100644 (file)
@@ -77,9 +77,9 @@
  * Enabled for clang & gcc >=4.8 on x86 when BMI2 isn't enabled by default.
  */
 #ifndef DYNAMIC_BMI2
-  #if (defined(__clang__) && __has_attribute(__target__)) \
+  #if ((defined(__clang__) && __has_attribute(__target__)) \
       || (defined(__GNUC__) \
-          && (__GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8))) \
+          && (__GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)))) \
       && (defined(__x86_64__) || defined(_M_X86)) \
       && !defined(__BMI2__)
   #  define DYNAMIC_BMI2 1