diff options
Diffstat (limited to 'arm_compute/core/NEON/kernels/convolution')
-rw-r--r-- | arm_compute/core/NEON/kernels/convolution/common/utils.hpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/arm_compute/core/NEON/kernels/convolution/common/utils.hpp b/arm_compute/core/NEON/kernels/convolution/common/utils.hpp index d8b9c3b7d3..a22809fb58 100644 --- a/arm_compute/core/NEON/kernels/convolution/common/utils.hpp +++ b/arm_compute/core/NEON/kernels/convolution/common/utils.hpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -25,13 +25,15 @@ #pragma once double TimeInUs(void); -void PrintMatrix(const float* const m, const int M, const int N, const int row_stride); +void PrintMatrix(const float *const m, const int M, const int N, const int row_stride); -inline int iceildiv(const int a, const int b) { - return (a + b - 1) / b; +inline int iceildiv(const int a, const int b) +{ + return (a + b - 1) / b; } template <typename T> -inline T roundup(const T a, const T b) { - return a + b - (a % b); +inline T roundup(const T a, const T b) +{ + return b * iceildiv(a, b); } |