From a3ce3e902342be37c626a561ce3d9ffcf27d0f94 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Wed, 10 Jan 2018 21:54:27 +0200 Subject: tuklib_integer: New Intel C compiler needs immintrin.h. Thanks to Melanie Blower (Intel) for the patch. --- src/common/tuklib_integer.h | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 +#endif + + /////////////////// // Byte swapping // /////////////////// -- cgit v1.2.3