From 4646d2e026a0fa92085fcba2f4aec5ec148956aa Mon Sep 17 00:00:00 2001 From: Michele Di Giorgio Date: Wed, 19 Jun 2019 12:28:47 +0100 Subject: COMPMID-2072: Use a constexpr for num_elems_processed_per_iteration where possible Change-Id: I26cb699ae3a77003ef7d05ac30d3ed518214e25f Signed-off-by: Michele Di Giorgio Reviewed-on: https://review.mlplatform.org/c/1375 Comments-Addressed: Arm Jenkins Reviewed-by: Manuel Bottini Tested-by: Arm Jenkins Reviewed-by: Pablo Marquez --- src/core/CL/kernels/CLWarpAffineKernel.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/core/CL/kernels/CLWarpAffineKernel.cpp') diff --git a/src/core/CL/kernels/CLWarpAffineKernel.cpp b/src/core/CL/kernels/CLWarpAffineKernel.cpp index 684305ccd4..cd20d42016 100644 --- a/src/core/CL/kernels/CLWarpAffineKernel.cpp +++ b/src/core/CL/kernels/CLWarpAffineKernel.cpp @@ -38,8 +38,8 @@ #include #include -using namespace arm_compute; - +namespace arm_compute +{ namespace { void options_add_matrix(std::set &options, const std::array &matrix) @@ -84,7 +84,7 @@ void CLWarpAffineKernel::configure(const ICLTensor *input, ICLTensor *output, co _kernel.setArg(idx++, input->info()->dimension(1)); // Configure kernel window - const unsigned int num_elems_processed_per_iteration = 4; + constexpr unsigned int num_elems_processed_per_iteration = 4; Window win = calculate_max_window(*output->info(), Steps(num_elems_processed_per_iteration)); @@ -123,3 +123,4 @@ void CLWarpAffineKernel::configure(const ICLTensor *input, ICLTensor *output, co _config_id += "_"; _config_id += lower_string(string_from_interpolation_policy(policy)); } +} // namespace arm_compute -- cgit v1.2.1