]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
ICC doesn't have a __BMI2__ macro
authorMatthew Barr <matthew.barr@intel.com>
Mon, 27 Mar 2017 23:51:41 +0000 (10:51 +1100)
committerMatthew Barr <matthew.barr@intel.com>
Wed, 26 Apr 2017 05:18:13 +0000 (15:18 +1000)
src/util/bitutils.h

index d144e8793aacb81bf67a2194cace078eb91a870b..f9e8d151552bff28880844887afba8d9f0c49104 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015-2016, Intel Corporation
+ * Copyright (c) 2015-2017, Intel Corporation
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
@@ -471,7 +471,8 @@ u32 rank_in_mask64(u64a mask, u32 bit) {
     return popcount64(mask);
 }
 
-#if defined(__BMI2__) || (defined(_WIN32) && defined(__AVX2__))
+#if defined(__BMI2__) || (defined(_WIN32) && defined(__AVX2__)) ||             \
+    (defined(__INTEL_COMPILER) && defined(__AVX2__))
 #define HAVE_PEXT
 #endif