From c2708ecff87610ee4021f75e442ae91a0ec01b07 Mon Sep 17 00:00:00 2001 From: Anthony Barbier Date: Fri, 8 Dec 2017 22:24:32 +0000 Subject: COMPMID-556: Switched from int32 to int to avoid compiling issues with bare_metal Change-Id: I87963a752896eadca1fbc5e5de5f8d83f9709f97 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/112588 Reviewed-by: Anthony Barbier Tested-by: Anthony Barbier --- .../kernels/NEGEMMLowpQuantizeDownInt32ToUint8ScaleKernel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core/NEON/kernels/NEGEMMLowpQuantizeDownInt32ToUint8ScaleKernel.cpp') diff --git a/src/core/NEON/kernels/NEGEMMLowpQuantizeDownInt32ToUint8ScaleKernel.cpp b/src/core/NEON/kernels/NEGEMMLowpQuantizeDownInt32ToUint8ScaleKernel.cpp index 54513d8cdb..573373f6b1 100644 --- a/src/core/NEON/kernels/NEGEMMLowpQuantizeDownInt32ToUint8ScaleKernel.cpp +++ b/src/core/NEON/kernels/NEGEMMLowpQuantizeDownInt32ToUint8ScaleKernel.cpp @@ -224,8 +224,8 @@ void NEGEMMLowpQuantizeDownInt32ToUint8ScaleKernel::run(const Window &window) // Compute left-over elements for(; x < window_end_x; ++x) { - const int32_t bias_value = *(reinterpret_cast(bias.ptr()) + x); - int32_t in_value = *(reinterpret_cast(in.ptr()) + x); + const int bias_value = *(reinterpret_cast(bias.ptr()) + x); + int in_value = *(reinterpret_cast(in.ptr()) + x); // Quantize in_value = ((in_value + bias_value + _result_offset) * _result_mult_int) >> _result_shift; @@ -270,7 +270,7 @@ void NEGEMMLowpQuantizeDownInt32ToUint8ScaleKernel::run(const Window &window) // Compute left-over elements for(; x < window_end_x; ++x) { - int32_t in_value = *(reinterpret_cast(in.ptr()) + x); + int in_value = *(reinterpret_cast(in.ptr()) + x); // Quantize in_value = ((in_value + _result_offset) * _result_mult_int) >> _result_shift; @@ -347,4 +347,4 @@ void NEGEMMLowpQuantizeDownInt32ToUint8ScaleKernel::run(const Window &window, co ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW(INEKernel::window(), window); (this->*_func)(window); -} \ No newline at end of file +} -- cgit v1.2.1