aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arm_compute/core/Helpers.h5
-rw-r--r--arm_compute/core/Helpers.inl5
2 files changed, 6 insertions, 4 deletions
diff --git a/arm_compute/core/Helpers.h b/arm_compute/core/Helpers.h
index 8f1426a56e..f548b8649f 100644
--- a/arm_compute/core/Helpers.h
+++ b/arm_compute/core/Helpers.h
@@ -809,10 +809,7 @@ inline T wrap_around(T x, T m)
*
* @return The number of dimensions in the range [0, @p dim_axis]
*/
-inline size_t dim_index_2_num_dims(int32_t dim_axis, int32_t num_dims)
-{
- return static_cast<size_t>(wrap_around(dim_axis, num_dims)) + 1;
-}
+inline size_t dim_index_2_num_dims(int32_t dim_axis, int32_t num_dims);
/** Convert negative coordinates to positive in the range [0, num_dims_input]
*
diff --git a/arm_compute/core/Helpers.inl b/arm_compute/core/Helpers.inl
index 233d46bb86..30461f3b84 100644
--- a/arm_compute/core/Helpers.inl
+++ b/arm_compute/core/Helpers.inl
@@ -29,6 +29,11 @@
namespace arm_compute
{
+inline size_t dim_index_2_num_dims(int32_t dim_axis, int32_t num_dims)
+{
+ return static_cast<size_t>(wrap_around(dim_axis, num_dims)) + 1;
+}
+
inline uint8_t pixel_area_c1u8_clamp(const uint8_t *first_pixel_ptr, size_t stride, size_t width, size_t height, float wr, float hr, int x, int y)
{
ARM_COMPUTE_ERROR_ON(first_pixel_ptr == nullptr);