From a888f7205bf44ea26adb75b05d9c376dd08ad96b Mon Sep 17 00:00:00 2001 From: Christophe Favergeon Date: Tue, 24 Nov 2020 10:22:43 +0100 Subject: [PATCH] CMSIS-DSP: Some minor corrections. Documentation and #define naming. --- Include/arm_vec_math_f16.h | 6 +++--- Source/MatrixFunctions/arm_mat_mult_f32.c | 4 ++-- Testing/Source/Tests/TransformCF32.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Include/arm_vec_math_f16.h b/Include/arm_vec_math_f16.h index bb8deae3..9abab4e9 100755 --- a/Include/arm_vec_math_f16.h +++ b/Include/arm_vec_math_f16.h @@ -20,8 +20,8 @@ * limitations under the License. */ -#ifndef _ARM_VEC_MATH_H -#define _ARM_VEC_MATH_H +#ifndef _ARM_VEC_MATH_F16_H +#define _ARM_VEC_MATH_F16_H #include "arm_math_types_f16.h" #include "arm_common_tables_f16.h" @@ -306,7 +306,7 @@ __STATIC_INLINE f16x8_t vtanhq_f16( #endif /* ARM FLOAT16 SUPPORTED */ -#endif /* _ARM_VEC_MATH_H */ +#endif /* _ARM_VEC_MATH_F16_H */ /** * diff --git a/Source/MatrixFunctions/arm_mat_mult_f32.c b/Source/MatrixFunctions/arm_mat_mult_f32.c index d04651e4..69ba5144 100644 --- a/Source/MatrixFunctions/arm_mat_mult_f32.c +++ b/Source/MatrixFunctions/arm_mat_mult_f32.c @@ -906,7 +906,7 @@ arm_status arm_mat_mult_f32( /* matrix multiplication */ while (colCnt > 0U) { - /* c(m,n) = a(1,1) * b(1,1) + a(1,2) * b(2,1) + .... + a(m,p) * b(p,n) */ + /* c(m,p) = a(m,1) * b(1,p) + a(m,2) * b(2,p) + .... + a(m,n) * b(n,p) */ /* Perform the multiply-accumulates */ sum += *pIn1++ * *pIn2; @@ -937,7 +937,7 @@ arm_status arm_mat_mult_f32( while (colCnt > 0U) { - /* c(m,n) = a(1,1) * b(1,1) + a(1,2) * b(2,1) + .... + a(m,p) * b(p,n) */ + /* c(m,p) = a(m,1) * b(1,p) + a(m,2) * b(2,p) + .... + a(m,n) * b(n,p) */ /* Perform the multiply-accumulates */ sum += *pIn1++ * *pIn2; diff --git a/Testing/Source/Tests/TransformCF32.cpp b/Testing/Source/Tests/TransformCF32.cpp index ef37b86c..70f47a6d 100755 --- a/Testing/Source/Tests/TransformCF32.cpp +++ b/Testing/Source/Tests/TransformCF32.cpp @@ -468,7 +468,7 @@ } - outputfft.create(ref.nbSamples(),TransformCF32::OUTPUT_CFFT_F32_ID,mgr); + outputfft.create(ref.nbSamples(),TransformCF32::OUTPUT_CFFT_F32_ID,mgr); }