aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/fixtures/LogicalFixture.h
diff options
context:
space:
mode:
authorSang-Hoon Park <sang-hoon.park@arm.com>2020-11-18 13:52:11 +0000
committerSang-Hoon Park <sang-hoon.park@arm.com>2020-11-27 10:17:13 +0000
commit2dbc586417d5a36fcc0aca97267388466f7fff6e (patch)
tree4b480123678ee9767d4ab618e91ef032d7c669b0 /tests/validation/fixtures/LogicalFixture.h
parentc90fcfe90721ecc4cf1045b60bf1c933cb4823f6 (diff)
downloadComputeLibrary-2dbc586417d5a36fcc0aca97267388466f7fff6e.tar.gz
COMPMID-3961: Cleaning up logical operators on OpenCL
Change-Id: I04cd23e9abcb1828e54cd59fee3bfa95a6dea3fb Signed-off-by: Sang-Hoon Park <sang-hoon.park@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4461 Tested-by: Arm Jenkins <bsgcomp@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com> Reviewed-by: Manuel Bottini <manuel.bottini@arm.com>
Diffstat (limited to 'tests/validation/fixtures/LogicalFixture.h')
-rw-r--r--tests/validation/fixtures/LogicalFixture.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/validation/fixtures/LogicalFixture.h b/tests/validation/fixtures/LogicalFixture.h
index 4bedb378bb..9f64d89d10 100644
--- a/tests/validation/fixtures/LogicalFixture.h
+++ b/tests/validation/fixtures/LogicalFixture.h
@@ -46,10 +46,10 @@ protected:
template <typename U>
void fill(U &&tensor, int i)
{
- constexpr auto zero = (uint8_t)0;
- constexpr auto one = (uint8_t)0x1;
- constexpr auto mixed = (uint8_t)0xAA;
- constexpr auto mixed_bitwise_not = (uint8_t) ~(0xAA);
+ constexpr auto zero = static_cast<uint8_t>(0);
+ constexpr auto one = static_cast<uint8_t>(0x1);
+ constexpr auto mixed = static_cast<uint8_t>(0xAA);
+ constexpr auto mixed_bitwise_not = static_cast<uint8_t>((~0xAA));
library->fill_static_values(tensor, i == 0 ?
std::vector<uint8_t> { zero, one, zero, one, mixed, zero, mixed } :