summaryrefslogtreecommitdiff
path: root/src/ipa/ipu3/ipu3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipa/ipu3/ipu3.cpp')
-rw-r--r--src/ipa/ipu3/ipu3.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipa/ipu3/ipu3.cpp b/src/ipa/ipu3/ipu3.cpp
index 76182587..3d307708 100644
--- a/src/ipa/ipu3/ipu3.cpp
+++ b/src/ipa/ipu3/ipu3.cpp
@@ -354,7 +354,7 @@ void IPAIPU3::calculateBdsGrid(const Size &bdsOutputSize)
kMaxGridWidth);
width = width << shift;
- uint32_t error = std::abs(static_cast<int>(width - bdsOutputSize.width));
+ uint32_t error = utils::abs_diff(width, bdsOutputSize.width);
if (error >= minError)
continue;
@@ -370,7 +370,7 @@ void IPAIPU3::calculateBdsGrid(const Size &bdsOutputSize)
kMaxGridHeight);
height = height << shift;
- uint32_t error = std::abs(static_cast<int>(height - bdsOutputSize.height));
+ uint32_t error = utils::abs_diff(height, bdsOutputSize.height);
if (error >= minError)
continue;