avutil/x86/intmath: Disable use of tzcnt on older intel compilers.
authorMatt Oliver <protogonoi@gmail.com>
Tue, 10 Nov 2015 13:13:42 +0000 (00:13 +1100)
committerMatt Oliver <protogonoi@gmail.com>
Tue, 10 Nov 2015 23:18:08 +0000 (10:18 +1100)
ICC versions older than atleast 12.1.6 dont have the tzcnt intrinsics.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Matt Oliver <protogonoi@gmail.com>
libavutil/x86/intmath.h

index 0022737..b3e5750 100644 (file)
@@ -32,7 +32,7 @@
 #include "config.h"
 
 #if HAVE_FAST_CLZ
-#if defined(__INTEL_COMPILER) || defined(_MSC_VER)
+#if (defined(__INTEL_COMPILER) && (__INTEL_COMPILER>=1216)) || defined(_MSC_VER)
 #   if defined(__INTEL_COMPILER)
 #       define ff_log2(x) (_bit_scan_reverse((x)|1))
 #   else