mirror of
https://gitcode.com/gh_mirrors/es/esp32-opencv.git
synced 2025-08-06 18:24:38 +08:00
Added code optimization for OpenCV compilation
- Changed -DCV_DISABLE_OPTIMIZATION to OFF - This re-enable code optimization (dispatched code/intrinsics/loop unrolling/etc)
This commit is contained in:
@ -21,7 +21,8 @@ class AllocatorStatistics : public AllocatorStatisticsInterface
|
||||
{
|
||||
protected:
|
||||
#ifdef CV_CXX11
|
||||
std::atomic<long> curr, total, total_allocs, peak; // ESP32 modification (from <long long> to <long>)
|
||||
// std::atomic<long long> curr, total, total_allocs, peak;
|
||||
std::atomic<long> curr, total, total_allocs, peak; // esp32 doesn't support hardware 64bit atomic. FIXME: add software support
|
||||
#else
|
||||
volatile long long curr, total, total_allocs, peak; // overflow is possible, CV_XADD operates with 'int' only
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user