Merge pull request #2359 from SpecLad:moments-no-vectorize

This commit is contained in:
Roman Donchenko 2014-02-18 17:00:32 +04:00 committed by OpenCV Buildbot
commit c35dab9046

View File

@ -197,6 +197,10 @@ static void icvContourMoments( CvSeq* contour, CvMoments* moments )
\****************************************************************************************/
template<typename T, typename WT, typename MT>
#if defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ >= 5 && __GNUC_MINOR__ < 9
// Workaround for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60196
__attribute__((optimize("no-tree-vectorize")))
#endif
static void momentsInTile( const cv::Mat& img, double* moments )
{
cv::Size size = img.size();