1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

core(stat): add required CV_AVX_GUARD

Added guard with 'vzeroupper' instruction
This commit is contained in:
Alexander Alekhin
2017-07-02 15:33:05 +00:00
parent c45d3568ae
commit b66c349bba
2 changed files with 10 additions and 0 deletions
@@ -111,6 +111,12 @@ struct VZeroUpperGuard {
#define __CV_AVX_GUARD VZeroUpperGuard __vzeroupper_guard;
#endif
#ifdef __CV_AVX_GUARD
#define CV_AVX_GUARD __CV_AVX_GUARD
#else
#define CV_AVX_GUARD
#endif
#endif // __OPENCV_BUILD