From b6c2c61ce1ea002e53629f2c7cf0b42b8e51f799 Mon Sep 17 00:00:00 2001 From: Patrick Mihelich Date: Thu, 23 Feb 2012 21:41:22 +0000 Subject: [PATCH] Check for SSSE3 in core/internal.hpp. Define CV_SSSE3, and if enabled include tmmintrin.h. --- modules/core/include/opencv2/core/internal.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/core/include/opencv2/core/internal.hpp b/modules/core/include/opencv2/core/internal.hpp index e9af13ce6..8d424a23a 100644 --- a/modules/core/include/opencv2/core/internal.hpp +++ b/modules/core/include/opencv2/core/internal.hpp @@ -113,10 +113,15 @@ CV_INLINE IppiSize ippiSize(int width, int height) #include "pmmintrin.h" #define CV_SSE3 1 #endif +#if defined __SSSE3__ +#include "tmmintrin.h" +#define CV_SSSE3 1 +#endif #else #define CV_SSE 0 #define CV_SSE2 0 #define CV_SSE3 0 +#define CV_SSSE3 0 #endif #if defined ANDROID && defined __ARM_NEON__ && defined __GNUC__