Skip to content
This repository was archived by the owner on Mar 22, 2020. It is now read-only.

Commit 8298644

Browse files
committed
Merge pull request opencv#4151 from lupustr3:pvlasov/ipp_alignment
2 parents 56e637d + 8439b59 commit 8298644

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/core/include/opencv2/core/private.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,10 @@ CV_EXPORTS void scalarToRawData(const cv::Scalar& s, void* buf, int type, int un
195195

196196
# define IPP_VERSION_X100 (IPP_VERSION_MAJOR * 100 + IPP_VERSION_MINOR)
197197

198-
#define IPP_ALIGN 32 // required for AVX optimization
198+
#ifdef CV_MALLOC_ALIGN
199+
#undef CV_MALLOC_ALIGN
200+
#endif
201+
#define CV_MALLOC_ALIGN 32 // required for AVX optimization
199202

200203
#define setIppErrorStatus() cv::ipp::setIppStatus(-1, CV_Func, __FILE__, __LINE__)
201204

0 commit comments

Comments
 (0)