diff --git a/Include/dsp/statistics_functions.h b/Include/dsp/statistics_functions.h index 4d308b31..e1a2ee26 100755 --- a/Include/dsp/statistics_functions.h +++ b/Include/dsp/statistics_functions.h @@ -1005,7 +1005,7 @@ const float64_t * pSrc, void arm_accumulate_q7( const q7_t * pSrc, uint32_t blockSize, - q7_t * pResult); + q31_t * pResult); /** * @brief Accumulation value of a Q15 vector. @@ -1017,7 +1017,7 @@ const q7_t * pSrc, void arm_accumulate_q15( const q15_t * pSrc, uint32_t blockSize, - q15_t * pResult); + q63_t * pResult); /** * @brief Accumulation value of a Q31 vector. @@ -1029,7 +1029,7 @@ const q15_t * pSrc, void arm_accumulate_q31( const q31_t * pSrc, uint32_t blockSize, - q31_t * pResult); + q63_t * pResult); #ifdef __cplusplus } diff --git a/Source/StatisticsFunctions/arm_accumulate_q15.c b/Source/StatisticsFunctions/arm_accumulate_q15.c index 7396c673..a5dfc9ca 100644 --- a/Source/StatisticsFunctions/arm_accumulate_q15.c +++ b/Source/StatisticsFunctions/arm_accumulate_q15.c @@ -57,11 +57,11 @@ void arm_accumulate_q15( const q15_t * pSrc, uint32_t blockSize, - q15_t * pResult) + q63_t * pResult) { uint32_t blkCnt; /* loop counters */ q15x8_t vecSrc; - q31_t sum = 0L; + q63_t sum = 0L; /* Compute 8 outputs at a time */ blkCnt = blockSize >> 3U; @@ -97,10 +97,10 @@ void arm_accumulate_q15( void arm_accumulate_q15( const q15_t * pSrc, uint32_t blockSize, - q15_t * pResult) + q63_t * pResult) { uint32_t blkCnt; /* Loop counter */ - q31_t sum = 0; /* Temporary result storage */ + q63_t sum = 0; /* Temporary result storage */ #if defined (ARM_MATH_LOOPUNROLL) q31_t in; diff --git a/Source/StatisticsFunctions/arm_accumulate_q31.c b/Source/StatisticsFunctions/arm_accumulate_q31.c index 40abe5e6..e790cf15 100644 --- a/Source/StatisticsFunctions/arm_accumulate_q31.c +++ b/Source/StatisticsFunctions/arm_accumulate_q31.c @@ -56,7 +56,7 @@ void arm_accumulate_q31( const q31_t * pSrc, uint32_t blockSize, - q31_t * pResult) + q63_t * pResult) { uint32_t blkCnt; /* loop counters */ q31x4_t vecSrc; @@ -94,7 +94,7 @@ void arm_accumulate_q31( void arm_accumulate_q31( const q31_t * pSrc, uint32_t blockSize, - q31_t * pResult) + q63_t * pResult) { uint32_t blkCnt; /* Loop counter */ q63_t sum = 0; /* Temporary result storage */ diff --git a/Source/StatisticsFunctions/arm_accumulate_q7.c b/Source/StatisticsFunctions/arm_accumulate_q7.c index 54e81d04..6aeed8de 100644 --- a/Source/StatisticsFunctions/arm_accumulate_q7.c +++ b/Source/StatisticsFunctions/arm_accumulate_q7.c @@ -58,7 +58,7 @@ void arm_accumulate_q7( const q7_t * pSrc, uint32_t blockSize, - q7_t * pResult) + q31_t * pResult) { uint32_t blkCnt; /* loop counters */ q7x16_t vecSrc; @@ -96,7 +96,7 @@ void arm_accumulate_q7( void arm_accumulate_q7( const q7_t * pSrc, uint32_t blockSize, - q7_t * pResult) + q31_t * pResult) { uint32_t blkCnt; /* Loop counter */ q31_t sum = 0; /* Temporary result storage */