diff options
author | Anthony Barbier <anthony.barbier@arm.com> | 2017-12-08 22:24:32 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:42:33 +0000 |
commit | c2708ecff87610ee4021f75e442ae91a0ec01b07 (patch) | |
tree | 8537fff8a01355a6c6da36597dfcbc33616752ca /src | |
parent | bd5900f4a18f7d5c48276a7ff25b4a1766376d69 (diff) | |
download | ComputeLibrary-c2708ecff87610ee4021f75e442ae91a0ec01b07.tar.gz |
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 <anthony.barbier@arm.com>
Tested-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/core/NEON/kernels/NEGEMMLowpQuantizeDownInt32ToUint8ScaleKernel.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<const int32_t *>(bias.ptr()) + x); - int32_t in_value = *(reinterpret_cast<const int32_t *>(in.ptr()) + x); + const int bias_value = *(reinterpret_cast<const int *>(bias.ptr()) + x); + int in_value = *(reinterpret_cast<const int *>(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<const int32_t *>(in.ptr()) + x); + int in_value = *(reinterpret_cast<const int *>(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 +} |