aboutsummaryrefslogtreecommitdiff
path: root/src/core/NEON/kernels/NEBitwiseAndKernel.cpp
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2018-12-17 18:21:02 +0000
committerGeorgios Pinitas <georgios.pinitas@arm.com>2018-12-18 11:14:14 +0000
commit52ebf4219385efe54463dc794ba806b82a6137b3 (patch)
tree6e187e253eb3bf0e236ae88145345db93e77e57a /src/core/NEON/kernels/NEBitwiseAndKernel.cpp
parentb88847146cb19ad1044abc5451849a5ff256823e (diff)
downloadComputeLibrary-52ebf4219385efe54463dc794ba806b82a6137b3.tar.gz
COMPMID-1809: Create a neon vector wrapper using register size.
Change-Id: I2657f0c09918924a38a75c395301414e50edc198 Reviewed-on: https://review.mlplatform.org/412 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Giuseppe Rossini <giuseppe.rossini@arm.com>
Diffstat (limited to 'src/core/NEON/kernels/NEBitwiseAndKernel.cpp')
-rw-r--r--src/core/NEON/kernels/NEBitwiseAndKernel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/NEON/kernels/NEBitwiseAndKernel.cpp b/src/core/NEON/kernels/NEBitwiseAndKernel.cpp
index c1e3e1f0bc..ed83286acf 100644
--- a/src/core/NEON/kernels/NEBitwiseAndKernel.cpp
+++ b/src/core/NEON/kernels/NEBitwiseAndKernel.cpp
@@ -42,10 +42,10 @@ class Coordinates;
namespace
{
-template <typename T, int S>
+template <typename T>
inline void bitwise_and(const T *__restrict input1, const T *__restrict input2, T *__restrict output)
{
- using type = typename wrapper::traits::neon_vector<T, S>::type;
+ using type = typename wrapper::traits::neon_bitvector<T, wrapper::traits::BitWidth::W128>::type;
const type val1 = vloadq(static_cast<const T *>(input1));
const type val2 = vloadq(static_cast<const T *>(input2));
@@ -108,7 +108,7 @@ void NEBitwiseAndKernel::run(const Window &window, const ThreadInfo &info)
execute_window_loop(window, [&](const Coordinates & id)
{
- bitwise_and<uint8_t, 16>(input1.ptr(), input2.ptr(), output.ptr());
+ bitwise_and<uint8_t>(input1.ptr(), input2.ptr(), output.ptr());
},
input1, input2, output);
}