Proper IPP alignment;
authorPavel Vlasov <pavel.vlasov@intel.com>
Wed, 24 Jun 2015 06:21:35 +0000 (09:21 +0300)
committerPavel Vlasov <pavel.vlasov@intel.com>
Wed, 24 Jun 2015 06:21:35 +0000 (09:21 +0300)
modules/core/include/opencv2/core/private.hpp

index 4f9f487..72f4ddc 100644 (file)
@@ -195,7 +195,10 @@ CV_EXPORTS void scalarToRawData(const cv::Scalar& s, void* buf, int type, int un
 
 #  define IPP_VERSION_X100 (IPP_VERSION_MAJOR * 100 + IPP_VERSION_MINOR)
 
-#define IPP_ALIGN 32 // required for AVX optimization
+#ifdef CV_MALLOC_ALIGN
+#undef CV_MALLOC_ALIGN
+#endif
+#define CV_MALLOC_ALIGN 32 // required for AVX optimization
 
 #define setIppErrorStatus() cv::ipp::setIppStatus(-1, CV_Func, __FILE__, __LINE__)