Maybe it has some Intel (ricer) magic?
---
 libavutil/x86/timer.h | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/libavutil/x86/timer.h b/libavutil/x86/timer.h
index cdd67dd..4e744ca 100644
--- a/libavutil/x86/timer.h
+++ b/libavutil/x86/timer.h
@@ -36,8 +36,13 @@ static inline uint64_t read_time(void)
 
 #elif HAVE_RDTSC
 
-#include <intrin.h>
-#define AV_READ_TIME __rdtsc
+#if defined(__INTEL_COMPILER)
+#   include <immintrin.h>
+#   define AV_READ_TIME _rdtsc
+#else
+#   include <intrin.h>
+#   define AV_READ_TIME __rdtsc
+#endif
 
 #endif /* HAVE_INLINE_ASM */
 
-- 
1.8.4.msysgit.0

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to