From 087e9edd391664d730efc5f82303865e5b42be59 Mon Sep 17 00:00:00 2001 From: Christophe Favergeon Date: Tue, 18 Feb 2020 07:20:42 +0100 Subject: [PATCH] CMSIS-DSP: Corrected compilation issue. Compilation error when ROUNDING=ON in MVE code. --- Source/SupportFunctions/arm_float_to_q15.c | 3 +++ Source/SupportFunctions/arm_float_to_q31.c | 3 +++ Source/SupportFunctions/arm_float_to_q7.c | 3 +++ 3 files changed, 9 insertions(+) diff --git a/Source/SupportFunctions/arm_float_to_q15.c b/Source/SupportFunctions/arm_float_to_q15.c index e34089ed..76736d5b 100644 --- a/Source/SupportFunctions/arm_float_to_q15.c +++ b/Source/SupportFunctions/arm_float_to_q15.c @@ -69,6 +69,9 @@ void arm_float_to_q15( float32_t maxQ = (float32_t) Q15_MAX; f32x4x2_t tmp; q15x8_t vecDst; +#ifdef ARM_MATH_ROUNDING + float32_t in; +#endif blkCnt = blockSize >> 3; diff --git a/Source/SupportFunctions/arm_float_to_q31.c b/Source/SupportFunctions/arm_float_to_q31.c index 8acd0b43..a4580f2b 100644 --- a/Source/SupportFunctions/arm_float_to_q31.c +++ b/Source/SupportFunctions/arm_float_to_q31.c @@ -72,6 +72,9 @@ void arm_float_to_q31( uint32_t blkCnt; float32_t maxQ = (float32_t) Q31_MAX; f32x4_t vecDst; +#ifdef ARM_MATH_ROUNDING + float32_t in; +#endif blkCnt = blockSize >> 2U; diff --git a/Source/SupportFunctions/arm_float_to_q7.c b/Source/SupportFunctions/arm_float_to_q7.c index 3833e8b6..80eb294a 100644 --- a/Source/SupportFunctions/arm_float_to_q7.c +++ b/Source/SupportFunctions/arm_float_to_q7.c @@ -70,6 +70,9 @@ void arm_float_to_q7( q15x8_t evVec, oddVec; q7x16_t vecDst; float32_t const *pSrcVec; +#ifdef ARM_MATH_ROUNDING + float32_t in; +#endif pSrcVec = (float32_t const *) pSrc; blkCnt = blockSize >> 4;