From 50beb24c6b7fe6f73a74420f320e30dc2ee6bd34 Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Fri, 3 Jul 2026 16:00:13 +0300 Subject: [PATCH] Enable non-exact IPP optimizations if build-time algorithm hint allows it. --- modules/core/src/system.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/core/src/system.cpp b/modules/core/src/system.cpp index 9eb9d9f94c..9fecd38dbb 100644 --- a/modules/core/src/system.cpp +++ b/modules/core/src/system.cpp @@ -2586,7 +2586,12 @@ public: IPPInitSingleton() { useIPP = true; + +#if defined(OPENCV_ALGO_HINT_DEFAULT) + useIPP_NE = OPENCV_ALGO_HINT_DEFAULT == cv::ALGO_HINT_APPROX; +#else useIPP_NE = false; +#endif ippStatus = 0; funcname = NULL; filename = NULL;