From 935067ee051e01c0a665ad1df6a81a71168ca173 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Hugo=20Lindstr=C3=B6m?= Date: Fri, 9 Aug 2019 17:01:37 +0200 Subject: [PATCH] Merge pull request #15265 from hugolm84:wince-armv7-supports-neon * WINCE 8.0 requires ARMv7 Thumb2 and thus have NEON instructions * Only add NEON if on _ARM_ --- modules/core/src/system.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/core/src/system.cpp b/modules/core/src/system.cpp index eec0082..f723a8c 100644 --- a/modules/core/src/system.cpp +++ b/modules/core/src/system.cpp @@ -554,7 +554,9 @@ struct HWFeatures have[CV_CPU_FP16] = true; #endif #endif - + #if defined _ARM_ && (defined(_WIN32_WCE) && _WIN32_WCE >= 0x800) + have[CV_CPU_NEON] = true; + #endif // there's no need to check VSX availability in runtime since it's always available on ppc64le CPUs have[CV_CPU_VSX] = (CV_VSX); // TODO: Check VSX3 availability in runtime for other platforms -- 2.7.4