1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

ipp(minmaxIdx): disable SSE4.2 optimizations for 32f datatype

NaN values handling issue
This commit is contained in:
Alexander Alekhin
2017-07-12 16:06:18 +03:00
parent 9365817bfd
commit 5ebfb52a4a
2 changed files with 8 additions and 0 deletions
+6
View File
@@ -2534,6 +2534,12 @@ static bool ipp_minMaxIdx(Mat &src, double* _minVal, double* _maxVal, int* _minI
#if IPP_VERSION_X100 >= 700
CV_INSTRUMENT_REGION_IPP()
#if IPP_DISABLE_MINMAX_NAN_SSE42
// Disable 32F processing only
if(src.depth() == CV_32F && !(ipp::getIppFeatures()&ippCPUID_AVX))
return false;
#endif
IppStatus status;
IppDataType dataType = ippiGetDataType(src.depth());
float minVal = 0;