aboutsummaryrefslogtreecommitdiff
path: root/src/core/NEON/kernels/NEHistogramKernel.cpp
diff options
context:
space:
mode:
authorIsabella Gottardi <isabella.gottardi@arm.com>2017-10-12 17:28:51 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commit02aabcca4904adba592fc9840085c87f336d11fb (patch)
treedbf947425cc91f6d31ad180a312ef1ad97ed34ee /src/core/NEON/kernels/NEHistogramKernel.cpp
parent6681d24ccc084a0d98d84edadc8aeb5416159261 (diff)
downloadComputeLibrary-02aabcca4904adba592fc9840085c87f336d11fb.tar.gz
COMPMID-583 - Implemented reference implementation and validation tests (NEON and CL) for Histogram
Change-Id: Iccf6b4483cb8394dab2f861a737583126f9bed81 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/91601 Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'src/core/NEON/kernels/NEHistogramKernel.cpp')
-rw-r--r--src/core/NEON/kernels/NEHistogramKernel.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/NEON/kernels/NEHistogramKernel.cpp b/src/core/NEON/kernels/NEHistogramKernel.cpp
index 6e402ae604..02de566f6a 100644
--- a/src/core/NEON/kernels/NEHistogramKernel.cpp
+++ b/src/core/NEON/kernels/NEHistogramKernel.cpp
@@ -87,8 +87,8 @@ void NEHistogramKernel::histogram_U8(Window win, const ThreadInfo &info)
}
};
- const unsigned int x_start = win.x().start();
- const unsigned int x_end = win.x().end();
+ const int x_start = win.x().start();
+ const int x_end = win.x().end();
// Handle X dimension manually to split into two loops
// First one will use vector operations, second one processes the left over
@@ -100,7 +100,7 @@ void NEHistogramKernel::histogram_U8(Window win, const ThreadInfo &info)
// Calculate local histogram
execute_window_loop(win, [&](const Coordinates &)
{
- unsigned int x = x_start;
+ int x = x_start;
// Vector loop
for(; x <= x_end - 8; x += 8)
@@ -136,8 +136,8 @@ void NEHistogramKernel::histogram_fixed_U8(Window win, const ThreadInfo &info)
std::array<uint32_t, _max_range_size> local_hist{ { 0 } };
- const unsigned int x_start = win.x().start();
- const unsigned int x_end = win.x().end();
+ const int x_start = win.x().start();
+ const int x_end = win.x().end();
// Handle X dimension manually to split into two loops
// First one will use vector operations, second one processes the left over
@@ -149,7 +149,7 @@ void NEHistogramKernel::histogram_fixed_U8(Window win, const ThreadInfo &info)
// Calculate local histogram
execute_window_loop(win, [&](const Coordinates &)
{
- unsigned int x = x_start;
+ int x = x_start;
// Vector loop
for(; x <= x_end - 8; x += 8)