]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
tuklib_integer: New Intel C compiler needs immintrin.h.
authorLasse Collin <lasse.collin@tukaani.org>
Wed, 10 Jan 2018 19:54:27 +0000 (21:54 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 10 Jan 2018 19:54:27 +0000 (21:54 +0200)
Thanks to Melanie Blower (Intel) for the patch.

src/common/tuklib_integer.h

index a7fda67966c79dde2cc47aa171d3236167e7fb43..b1e84d5c1d0c406a4e52c58feebf1649b52e9dc6 100644 (file)
 #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 //
 ///////////////////