From f2facaa0a2cc386810a798a61643e4b3545d7bbd Mon Sep 17 00:00:00 2001 From: Christophe Favergeon Date: Wed, 22 Jan 2020 13:29:53 +0100 Subject: [PATCH] CMSIS-DSP: Correction for issue 720 --- Include/arm_math.h | 2 +- Source/TransformFunctions/arm_rfft_fast_f32.c | 5 ++--- Testing/Source/Tests/InterpolationTestsF32.cpp | 1 - Testing/Source/Tests/InterpolationTestsQ15.cpp | 1 - Testing/Source/Tests/InterpolationTestsQ31.cpp | 1 - Testing/Source/Tests/InterpolationTestsQ7.cpp | 1 - 6 files changed, 3 insertions(+), 8 deletions(-) diff --git a/Include/arm_math.h b/Include/arm_math.h index 5551f917..d111f81c 100644 --- a/Include/arm_math.h +++ b/Include/arm_math.h @@ -3363,7 +3363,7 @@ arm_status arm_rfft_4096_fast_init_f32 ( arm_rfft_fast_instance_f32 * S ); void arm_rfft_fast_f32( - arm_rfft_fast_instance_f32 * S, + const arm_rfft_fast_instance_f32 * S, float32_t * p, float32_t * pOut, uint8_t ifftFlag); diff --git a/Source/TransformFunctions/arm_rfft_fast_f32.c b/Source/TransformFunctions/arm_rfft_fast_f32.c index ce51c195..8d5d72ec 100644 --- a/Source/TransformFunctions/arm_rfft_fast_f32.c +++ b/Source/TransformFunctions/arm_rfft_fast_f32.c @@ -573,13 +573,12 @@ void merge_rfft_f32( */ void arm_rfft_fast_f32( - arm_rfft_fast_instance_f32 * S, + const arm_rfft_fast_instance_f32 * S, float32_t * p, float32_t * pOut, uint8_t ifftFlag) { - arm_cfft_instance_f32 * Sint = &(S->Sint); - Sint->fftLen = S->fftLenRFFT / 2; + const arm_cfft_instance_f32 * Sint = &(S->Sint); /* Calculation of Real FFT */ if (ifftFlag) diff --git a/Testing/Source/Tests/InterpolationTestsF32.cpp b/Testing/Source/Tests/InterpolationTestsF32.cpp index 2f6a14df..010dee0b 100755 --- a/Testing/Source/Tests/InterpolationTestsF32.cpp +++ b/Testing/Source/Tests/InterpolationTestsF32.cpp @@ -39,7 +39,6 @@ a double precision computation. const float32_t *inp = input.ptr(); float32_t *outp = output.ptr(); float32_t x,y; - int i=0; int nb; for(nb = 0; nb < input.nbSamples(); nb += 2) { diff --git a/Testing/Source/Tests/InterpolationTestsQ15.cpp b/Testing/Source/Tests/InterpolationTestsQ15.cpp index 3df40fbf..dfa8d565 100755 --- a/Testing/Source/Tests/InterpolationTestsQ15.cpp +++ b/Testing/Source/Tests/InterpolationTestsQ15.cpp @@ -39,7 +39,6 @@ a double precision computation. const q31_t *inp = input.ptr(); q15_t *outp = output.ptr(); q31_t x,y; - int i=0; int nb; for(nb = 0; nb < input.nbSamples(); nb += 2) { diff --git a/Testing/Source/Tests/InterpolationTestsQ31.cpp b/Testing/Source/Tests/InterpolationTestsQ31.cpp index eb7f3628..e3d960b4 100755 --- a/Testing/Source/Tests/InterpolationTestsQ31.cpp +++ b/Testing/Source/Tests/InterpolationTestsQ31.cpp @@ -39,7 +39,6 @@ a double precision computation. const q31_t *inp = input.ptr(); q31_t *outp = output.ptr(); q31_t x,y; - int i=0; int nb; for(nb = 0; nb < input.nbSamples(); nb += 2) { diff --git a/Testing/Source/Tests/InterpolationTestsQ7.cpp b/Testing/Source/Tests/InterpolationTestsQ7.cpp index 6589d1f2..4acd93aa 100755 --- a/Testing/Source/Tests/InterpolationTestsQ7.cpp +++ b/Testing/Source/Tests/InterpolationTestsQ7.cpp @@ -38,7 +38,6 @@ a double precision computation. const q31_t *inp = input.ptr(); q7_t *outp = output.ptr(); q31_t x,y; - int i=0; int nb; for(nb = 0; nb < input.nbSamples(); nb += 2) {