aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2018-01-10 21:54:27 +0200
committerLasse Collin <lasse.collin@tukaani.org>2018-03-28 19:24:39 +0300
commita3ce3e902342be37c626a561ce3d9ffcf27d0f94 (patch)
tree7a31dce2fa12ea8f683a44da65ffe7455e2e1be8 /src/common
parentUpdate THANKS. (diff)
downloadxz-a3ce3e902342be37c626a561ce3d9ffcf27d0f94.tar.xz
tuklib_integer: New Intel C compiler needs immintrin.h.
Thanks to Melanie Blower (Intel) for the patch.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tuklib_integer.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/common/tuklib_integer.h b/src/common/tuklib_integer.h
index a7fda679..b1e84d5c 100644
--- a/src/common/tuklib_integer.h
+++ b/src/common/tuklib_integer.h
@@ -98,6 +98,17 @@
#endif
+////////////////////////////////
+// Compiler-specific features //
+////////////////////////////////
+
+// Newer Intel C compilers require immintrin.h for _bit_scan_reverse()
+// and such functions.
+#if defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 1500)
+# include <immintrin.h>
+#endif
+
+
///////////////////
// Byte swapping //
///////////////////