NEON detection in runtime

This commit is contained in:
Ilya Lavrenov
2014-12-30 16:53:19 +03:00
parent 61991a3330
commit 81f786393a
3 changed files with 42 additions and 18 deletions

View File

@@ -3020,7 +3020,7 @@ void printVersionInfo(bool useStdOut)
if (checkHardwareSupport(CV_CPU_AVX)) cpu_features += " avx";
#endif
#if CV_NEON
cpu_features += " neon"; // NEON is currently not checked at runtime
if (checkHardwareSupport(CV_CPU_NEON)) cpu_features += " neon";
#endif
cpu_features.erase(0, 1); // erase initial space