diff options
author | Éanna Ó Catháin <eanna.ocathain@arm.com> | 2021-09-01 15:44:56 +0100 |
---|---|---|
committer | Isabella Gottardi <isabella.gottardi@arm.com> | 2021-09-02 09:10:21 +0000 |
commit | 036f8c7c732ed50da3a349f1b5fb0c57e22d33fd (patch) | |
tree | 4e116345b3b85461c68b3419afda3451d56a12c1 /source/application/main | |
parent | a439076418d2d83fdf962a1d5c4c0e8bcb46b3fe (diff) | |
download | ml-embedded-evaluation-kit-036f8c7c732ed50da3a349f1b5fb0c57e22d33fd.tar.gz |
MLECO-2226 Fix for for loop in complex magnitude calculation
Change-Id: Id5c09851d4377cc52039a4988df93cfd84dab9c0
Signed-off-by: Éanna Ó Catháin <eanna.ocathain@arm.com>
Diffstat (limited to 'source/application/main')
-rw-r--r-- | source/application/main/PlatformMath.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/application/main/PlatformMath.cc b/source/application/main/PlatformMath.cc index 9d18151..0043635 100644 --- a/source/application/main/PlatformMath.cc +++ b/source/application/main/PlatformMath.cc @@ -182,7 +182,7 @@ namespace math { #if ARM_DSP_AVAILABLE arm_cmplx_mag_squared_f32(ptrSrc, ptrDst, srcLen/2); #else /* ARM_DSP_AVAILABLE */ - for (uint32_t j = 0; j < srcLen; ++j) { + for (uint32_t j = 0; j < srcLen/2; ++j) { const float real = *ptrSrc++; const float im = *ptrSrc++; *ptrDst++ = real*real + im*im; |