From a55a8c9aa50bbd8c1e5605db060404aff1c86fc1 Mon Sep 17 00:00:00 2001 From: manuele Date: Thu, 18 Jun 2015 11:19:46 +0200 Subject: [PATCH] Enable NEON optimization for cvRound on newer devices --- modules/hal/include/opencv2/hal/defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hal/include/opencv2/hal/defs.h b/modules/hal/include/opencv2/hal/defs.h index 197533993..1c30073a0 100644 --- a/modules/hal/include/opencv2/hal/defs.h +++ b/modules/hal/include/opencv2/hal/defs.h @@ -179,7 +179,7 @@ # define CV_NEON 1 #endif -#if defined __GNUC__ && defined __arm__ && (defined __ARM_PCS_VFP || defined __ARM_VFPV3__) +#if defined __GNUC__ && defined __arm__ && (defined __ARM_PCS_VFP || defined __ARM_VFPV3__ || defined __ARM_NEON__) && !defined __SOFTFP__ # define CV_VFP 1 #endif