NEON instruction set enabled for WIN32 on ARM by default.
authorAlexander Smorkalov <alexander.smorkalov@itseez.com>
Sun, 4 Aug 2013 15:47:42 +0000 (08:47 -0700)
committerAlexander Smorkalov <alexander.smorkalov@itseez.com>
Sun, 4 Aug 2013 15:47:42 +0000 (08:47 -0700)
modules/core/include/opencv2/core/internal.hpp
modules/flann/include/opencv2/flann/dist.h

index 5e8a03b..2f26e7c 100644 (file)
@@ -136,7 +136,13 @@ CV_INLINE IppiSize ippiSize(int width, int height)
 #  endif
 #endif
 
-#ifdef __ARM_NEON__
+
+#if (defined WIN32 || defined _WIN32) && defined(_M_ARM)
+# include <Intrin.h>
+# include "arm_neon.h"
+# define CV_NEON 1
+# define CPU_HAS_NEON_FEATURE (true)
+#elif defined(__ARM_NEON__)
 #  include <arm_neon.h>
 #  define CV_NEON 1
 #  define CPU_HAS_NEON_FEATURE (true)
index 7380d0c..80ae2dc 100644 (file)
@@ -43,8 +43,12 @@ typedef unsigned __int64 uint64_t;
 
 #include "defines.h"
 
+#if (defined WIN32 || defined _WIN32) && defined(_M_ARM)
+# include <Intrin.h>
+#endif
+
 #ifdef __ARM_NEON__
-#include "arm_neon.h"
+# include "arm_neon.h"
 #endif
 
 namespace cvflann