diff --git a/ComputeLibrary/Include/NEMath.h b/ComputeLibrary/Include/NEMath.h index 589f8dc4e..b679f6e83 100755 --- a/ComputeLibrary/Include/NEMath.h +++ b/ComputeLibrary/Include/NEMath.h @@ -21,8 +21,8 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -#ifndef __ARM_COMPUTE_NEMATH_H__ -#define __ARM_COMPUTE_NEMATH_H__ +#ifndef ARM_COMPUTE_NEMATH_H__ +#define ARM_COMPUTE_NEMATH_H__ #if defined(ARM_MATH_NEON) diff --git a/Include/arm_common_tables.h b/Include/arm_common_tables.h index f99721d4e..6a9270437 100644 --- a/Include/arm_common_tables.h +++ b/Include/arm_common_tables.h @@ -26,8 +26,8 @@ * limitations under the License. */ -#ifndef _ARM_COMMON_TABLES_H -#define _ARM_COMMON_TABLES_H +#ifndef ARM_COMMON_TABLES_H +#define ARM_COMMON_TABLES_H #include "arm_math_types.h" #include "dsp/fast_math_functions.h" diff --git a/Include/arm_common_tables_f16.h b/Include/arm_common_tables_f16.h index 2fb52e88b..c84a766ad 100755 --- a/Include/arm_common_tables_f16.h +++ b/Include/arm_common_tables_f16.h @@ -26,8 +26,8 @@ * limitations under the License. */ -#ifndef _ARM_COMMON_TABLES_F16_H -#define _ARM_COMMON_TABLES_F16_H +#ifndef ARM_COMMON_TABLES_F16_H +#define ARM_COMMON_TABLES_F16_H #include "arm_math_types_f16.h" diff --git a/Include/arm_const_structs.h b/Include/arm_const_structs.h index 59026db5d..32c1a436e 100644 --- a/Include/arm_const_structs.h +++ b/Include/arm_const_structs.h @@ -27,8 +27,8 @@ * limitations under the License. */ -#ifndef _ARM_CONST_STRUCTS_H -#define _ARM_CONST_STRUCTS_H +#ifndef ARM_CONST_STRUCTS_H +#define ARM_CONST_STRUCTS_H #include "arm_math_types.h" #include "arm_common_tables.h" diff --git a/Include/arm_const_structs_f16.h b/Include/arm_const_structs_f16.h index d834fa7dc..3a520b6b9 100755 --- a/Include/arm_const_structs_f16.h +++ b/Include/arm_const_structs_f16.h @@ -27,8 +27,8 @@ * limitations under the License. */ -#ifndef _ARM_CONST_STRUCTS_F16_H -#define _ARM_CONST_STRUCTS_F16_H +#ifndef ARM_CONST_STRUCTS_F16_H +#define ARM_CONST_STRUCTS_F16_H #include "arm_math_types_f16.h" #include "arm_common_tables.h" diff --git a/Include/arm_helium_utils.h b/Include/arm_helium_utils.h index 0dedb1d74..651676782 100755 --- a/Include/arm_helium_utils.h +++ b/Include/arm_helium_utils.h @@ -26,8 +26,8 @@ * limitations under the License. */ -#ifndef _ARM_UTILS_HELIUM_H_ -#define _ARM_UTILS_HELIUM_H_ +#ifndef ARM_UTILS_HELIUM_H_ +#define ARM_UTILS_HELIUM_H_ #ifdef __cplusplus diff --git a/Include/arm_math.h b/Include/arm_math.h index cb1b6ece0..0e9ca5997 100644 --- a/Include/arm_math.h +++ b/Include/arm_math.h @@ -24,8 +24,8 @@ */ -#ifndef _ARM_MATH_H -#define _ARM_MATH_H +#ifndef ARM_MATH_H +#define ARM_MATH_H #include "arm_math_types.h" diff --git a/Include/arm_math_f16.h b/Include/arm_math_f16.h index daf0c53d4..34ca0e542 100755 --- a/Include/arm_math_f16.h +++ b/Include/arm_math_f16.h @@ -23,8 +23,8 @@ * limitations under the License. */ -#ifndef _ARM_MATH_F16_H -#define _ARM_MATH_F16_H +#ifndef ARM_MATH_F16_H +#define ARM_MATH_F16_H #include "arm_math.h" diff --git a/Include/arm_math_memory.h b/Include/arm_math_memory.h index a6ca3c57b..d4b4c3323 100755 --- a/Include/arm_math_memory.h +++ b/Include/arm_math_memory.h @@ -23,9 +23,9 @@ * limitations under the License. */ -#ifndef _ARM_MATH_MEMORY_H_ +#ifndef ARM_MATH_MEMORY_H_ -#define _ARM_MATH_MEMORY_H_ +#define ARM_MATH_MEMORY_H_ #include "arm_math_types.h" diff --git a/Include/arm_math_types.h b/Include/arm_math_types.h index c10329220..f1e81bb9a 100755 --- a/Include/arm_math_types.h +++ b/Include/arm_math_types.h @@ -23,9 +23,13 @@ * limitations under the License. */ -#ifndef _ARM_MATH_TYPES_H_ +#ifndef ARM_MATH_TYPES_H_ -#define _ARM_MATH_TYPES_H_ +#define ARM_MATH_TYPES_H_ + +#ifndef ARM_DSP_ATTRIBUTE +#define ARM_DSP_ATTRIBUTE +#endif #ifdef __cplusplus extern "C" diff --git a/Include/arm_math_types_f16.h b/Include/arm_math_types_f16.h index 7fe87d299..26b8feeec 100755 --- a/Include/arm_math_types_f16.h +++ b/Include/arm_math_types_f16.h @@ -23,8 +23,8 @@ * limitations under the License. */ -#ifndef _ARM_MATH_TYPES_F16_H -#define _ARM_MATH_TYPES_F16_H +#ifndef ARM_MATH_TYPES_F16_H +#define ARM_MATH_TYPES_F16_H #include "arm_math_types.h" diff --git a/Include/arm_mve_tables.h b/Include/arm_mve_tables.h index 1c6e76bd4..aa58d7a92 100755 --- a/Include/arm_mve_tables.h +++ b/Include/arm_mve_tables.h @@ -27,8 +27,8 @@ * limitations under the License. */ - #ifndef _ARM_MVE_TABLES_H - #define _ARM_MVE_TABLES_H + #ifndef ARM_MVE_TABLES_H + #define ARM_MVE_TABLES_H #include "arm_math_types.h" diff --git a/Include/arm_mve_tables_f16.h b/Include/arm_mve_tables_f16.h index e7cf25600..ae2824529 100755 --- a/Include/arm_mve_tables_f16.h +++ b/Include/arm_mve_tables_f16.h @@ -27,8 +27,8 @@ * limitations under the License. */ - #ifndef _ARM_MVE_TABLES_F16_H - #define _ARM_MVE_TABLES_F16_H + #ifndef ARM_MVE_TABLES_F16_H + #define ARM_MVE_TABLES_F16_H #include "arm_math_types_f16.h" diff --git a/Include/arm_vec_math.h b/Include/arm_vec_math.h index 9cc4c4e60..ec90802e0 100755 --- a/Include/arm_vec_math.h +++ b/Include/arm_vec_math.h @@ -23,8 +23,8 @@ * limitations under the License. */ -#ifndef _ARM_VEC_MATH_H -#define _ARM_VEC_MATH_H +#ifndef ARM_VEC_MATH_H +#define ARM_VEC_MATH_H #include "arm_math_types.h" #include "arm_common_tables.h" diff --git a/Include/arm_vec_math_f16.h b/Include/arm_vec_math_f16.h index 91bd28aaf..70e503d66 100755 --- a/Include/arm_vec_math_f16.h +++ b/Include/arm_vec_math_f16.h @@ -23,8 +23,8 @@ * limitations under the License. */ -#ifndef _ARM_VEC_MATH_F16_H -#define _ARM_VEC_MATH_F16_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" diff --git a/Include/dsp/basic_math_functions.h b/Include/dsp/basic_math_functions.h index 0b2cc0a29..de05880d4 100755 --- a/Include/dsp/basic_math_functions.h +++ b/Include/dsp/basic_math_functions.h @@ -24,8 +24,8 @@ */ -#ifndef _BASIC_MATH_FUNCTIONS_H_ -#define _BASIC_MATH_FUNCTIONS_H_ +#ifndef BASIC_MATH_FUNCTIONS_H_ +#define BASIC_MATH_FUNCTIONS_H_ #include "arm_math_types.h" #include "arm_math_memory.h" @@ -50,7 +50,7 @@ extern "C" * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ - void arm_mult_q7( + ARM_DSP_ATTRIBUTE void arm_mult_q7( const q7_t * pSrcA, const q7_t * pSrcB, q7_t * pDst, @@ -64,7 +64,7 @@ extern "C" * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ - void arm_mult_q15( + ARM_DSP_ATTRIBUTE void arm_mult_q15( const q15_t * pSrcA, const q15_t * pSrcB, q15_t * pDst, @@ -78,7 +78,7 @@ extern "C" * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ - void arm_mult_q31( + ARM_DSP_ATTRIBUTE void arm_mult_q31( const q31_t * pSrcA, const q31_t * pSrcB, q31_t * pDst, @@ -92,7 +92,7 @@ extern "C" * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ - void arm_mult_f32( + ARM_DSP_ATTRIBUTE void arm_mult_f32( const float32_t * pSrcA, const float32_t * pSrcB, float32_t * pDst, @@ -107,7 +107,7 @@ extern "C" * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ -void arm_mult_f64( +ARM_DSP_ATTRIBUTE void arm_mult_f64( const float64_t * pSrcA, const float64_t * pSrcB, float64_t * pDst, @@ -122,7 +122,7 @@ const float64_t * pSrcB, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ - void arm_add_f32( + ARM_DSP_ATTRIBUTE void arm_add_f32( const float32_t * pSrcA, const float32_t * pSrcB, float32_t * pDst, @@ -137,7 +137,7 @@ const float64_t * pSrcB, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ - void arm_add_f64( + ARM_DSP_ATTRIBUTE void arm_add_f64( const float64_t * pSrcA, const float64_t * pSrcB, float64_t * pDst, @@ -152,7 +152,7 @@ const float64_t * pSrcB, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ - void arm_add_q7( + ARM_DSP_ATTRIBUTE void arm_add_q7( const q7_t * pSrcA, const q7_t * pSrcB, q7_t * pDst, @@ -166,7 +166,7 @@ const float64_t * pSrcB, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ - void arm_add_q15( + ARM_DSP_ATTRIBUTE void arm_add_q15( const q15_t * pSrcA, const q15_t * pSrcB, q15_t * pDst, @@ -180,7 +180,7 @@ const float64_t * pSrcB, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ - void arm_add_q31( + ARM_DSP_ATTRIBUTE void arm_add_q31( const q31_t * pSrcA, const q31_t * pSrcB, q31_t * pDst, @@ -194,7 +194,7 @@ const float64_t * pSrcB, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ - void arm_sub_f32( + ARM_DSP_ATTRIBUTE void arm_sub_f32( const float32_t * pSrcA, const float32_t * pSrcB, float32_t * pDst, @@ -209,7 +209,7 @@ const float64_t * pSrcB, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ - void arm_sub_f64( + ARM_DSP_ATTRIBUTE void arm_sub_f64( const float64_t * pSrcA, const float64_t * pSrcB, float64_t * pDst, @@ -224,7 +224,7 @@ const float64_t * pSrcB, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ - void arm_sub_q7( + ARM_DSP_ATTRIBUTE void arm_sub_q7( const q7_t * pSrcA, const q7_t * pSrcB, q7_t * pDst, @@ -238,7 +238,7 @@ const float64_t * pSrcB, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ - void arm_sub_q15( + ARM_DSP_ATTRIBUTE void arm_sub_q15( const q15_t * pSrcA, const q15_t * pSrcB, q15_t * pDst, @@ -252,7 +252,7 @@ const float64_t * pSrcB, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ - void arm_sub_q31( + ARM_DSP_ATTRIBUTE void arm_sub_q31( const q31_t * pSrcA, const q31_t * pSrcB, q31_t * pDst, @@ -266,7 +266,7 @@ const float64_t * pSrcB, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ - void arm_scale_f32( + ARM_DSP_ATTRIBUTE void arm_scale_f32( const float32_t * pSrc, float32_t scale, float32_t * pDst, @@ -281,7 +281,7 @@ const float64_t * pSrcB, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ - void arm_scale_f64( + ARM_DSP_ATTRIBUTE void arm_scale_f64( const float64_t * pSrc, float64_t scale, float64_t * pDst, @@ -297,7 +297,7 @@ const float64_t * pSrcB, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ - void arm_scale_q7( + ARM_DSP_ATTRIBUTE void arm_scale_q7( const q7_t * pSrc, q7_t scaleFract, int8_t shift, @@ -313,7 +313,7 @@ const float64_t * pSrcB, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ - void arm_scale_q15( + ARM_DSP_ATTRIBUTE void arm_scale_q15( const q15_t * pSrc, q15_t scaleFract, int8_t shift, @@ -329,7 +329,7 @@ const float64_t * pSrcB, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ - void arm_scale_q31( + ARM_DSP_ATTRIBUTE void arm_scale_q31( const q31_t * pSrc, q31_t scaleFract, int8_t shift, @@ -343,7 +343,7 @@ const float64_t * pSrcB, * @param[out] pDst points to the output buffer * @param[in] blockSize number of samples in each vector */ - void arm_abs_q7( + ARM_DSP_ATTRIBUTE void arm_abs_q7( const q7_t * pSrc, q7_t * pDst, uint32_t blockSize); @@ -355,7 +355,7 @@ const float64_t * pSrcB, * @param[out] pDst points to the output buffer * @param[in] blockSize number of samples in each vector */ - void arm_abs_f32( + ARM_DSP_ATTRIBUTE void arm_abs_f32( const float32_t * pSrc, float32_t * pDst, uint32_t blockSize); @@ -368,7 +368,7 @@ const float64_t * pSrcB, * @param[out] pDst points to the output buffer * @param[in] blockSize number of samples in each vector */ -void arm_abs_f64( +ARM_DSP_ATTRIBUTE void arm_abs_f64( const float64_t * pSrc, float64_t * pDst, uint32_t blockSize); @@ -381,7 +381,7 @@ const float64_t * pSrc, * @param[out] pDst points to the output buffer * @param[in] blockSize number of samples in each vector */ - void arm_abs_q15( + ARM_DSP_ATTRIBUTE void arm_abs_q15( const q15_t * pSrc, q15_t * pDst, uint32_t blockSize); @@ -393,7 +393,7 @@ const float64_t * pSrc, * @param[out] pDst points to the output buffer * @param[in] blockSize number of samples in each vector */ - void arm_abs_q31( + ARM_DSP_ATTRIBUTE void arm_abs_q31( const q31_t * pSrc, q31_t * pDst, uint32_t blockSize); @@ -406,7 +406,7 @@ const float64_t * pSrc, * @param[in] blockSize number of samples in each vector * @param[out] result output result returned here */ - void arm_dot_prod_f32( + ARM_DSP_ATTRIBUTE void arm_dot_prod_f32( const float32_t * pSrcA, const float32_t * pSrcB, uint32_t blockSize, @@ -421,7 +421,7 @@ const float64_t * pSrc, * @param[in] blockSize number of samples in each vector * @param[out] result output result returned here */ -void arm_dot_prod_f64( +ARM_DSP_ATTRIBUTE void arm_dot_prod_f64( const float64_t * pSrcA, const float64_t * pSrcB, uint32_t blockSize, @@ -436,7 +436,7 @@ const float64_t * pSrcB, * @param[in] blockSize number of samples in each vector * @param[out] result output result returned here */ - void arm_dot_prod_q7( + ARM_DSP_ATTRIBUTE void arm_dot_prod_q7( const q7_t * pSrcA, const q7_t * pSrcB, uint32_t blockSize, @@ -450,7 +450,7 @@ const float64_t * pSrcB, * @param[in] blockSize number of samples in each vector * @param[out] result output result returned here */ - void arm_dot_prod_q15( + ARM_DSP_ATTRIBUTE void arm_dot_prod_q15( const q15_t * pSrcA, const q15_t * pSrcB, uint32_t blockSize, @@ -464,7 +464,7 @@ const float64_t * pSrcB, * @param[in] blockSize number of samples in each vector * @param[out] result output result returned here */ - void arm_dot_prod_q31( + ARM_DSP_ATTRIBUTE void arm_dot_prod_q31( const q31_t * pSrcA, const q31_t * pSrcB, uint32_t blockSize, @@ -478,7 +478,7 @@ const float64_t * pSrcB, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ - void arm_shift_q7( + ARM_DSP_ATTRIBUTE void arm_shift_q7( const q7_t * pSrc, int8_t shiftBits, q7_t * pDst, @@ -492,7 +492,7 @@ const float64_t * pSrcB, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ - void arm_shift_q15( + ARM_DSP_ATTRIBUTE void arm_shift_q15( const q15_t * pSrc, int8_t shiftBits, q15_t * pDst, @@ -506,7 +506,7 @@ const float64_t * pSrcB, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ - void arm_shift_q31( + ARM_DSP_ATTRIBUTE void arm_shift_q31( const q31_t * pSrc, int8_t shiftBits, q31_t * pDst, @@ -520,7 +520,7 @@ const float64_t * pSrcB, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ -void arm_offset_f64( +ARM_DSP_ATTRIBUTE void arm_offset_f64( const float64_t * pSrc, float64_t offset, float64_t * pDst, @@ -535,7 +535,7 @@ const float64_t * pSrc, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ - void arm_offset_f32( + ARM_DSP_ATTRIBUTE void arm_offset_f32( const float32_t * pSrc, float32_t offset, float32_t * pDst, @@ -550,7 +550,7 @@ const float64_t * pSrc, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ - void arm_offset_q7( + ARM_DSP_ATTRIBUTE void arm_offset_q7( const q7_t * pSrc, q7_t offset, q7_t * pDst, @@ -564,7 +564,7 @@ const float64_t * pSrc, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ - void arm_offset_q15( + ARM_DSP_ATTRIBUTE void arm_offset_q15( const q15_t * pSrc, q15_t offset, q15_t * pDst, @@ -578,7 +578,7 @@ const float64_t * pSrc, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ - void arm_offset_q31( + ARM_DSP_ATTRIBUTE void arm_offset_q31( const q31_t * pSrc, q31_t offset, q31_t * pDst, @@ -591,7 +591,7 @@ const float64_t * pSrc, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ - void arm_negate_f32( + ARM_DSP_ATTRIBUTE void arm_negate_f32( const float32_t * pSrc, float32_t * pDst, uint32_t blockSize); @@ -604,7 +604,7 @@ const float64_t * pSrc, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ -void arm_negate_f64( +ARM_DSP_ATTRIBUTE void arm_negate_f64( const float64_t * pSrc, float64_t * pDst, uint32_t blockSize); @@ -617,7 +617,7 @@ const float64_t * pSrc, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ - void arm_negate_q7( + ARM_DSP_ATTRIBUTE void arm_negate_q7( const q7_t * pSrc, q7_t * pDst, uint32_t blockSize); @@ -629,7 +629,7 @@ const float64_t * pSrc, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ - void arm_negate_q15( + ARM_DSP_ATTRIBUTE void arm_negate_q15( const q15_t * pSrc, q15_t * pDst, uint32_t blockSize); @@ -641,7 +641,7 @@ const float64_t * pSrc, * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ - void arm_negate_q31( + ARM_DSP_ATTRIBUTE void arm_negate_q31( const q31_t * pSrc, q31_t * pDst, uint32_t blockSize); @@ -653,7 +653,7 @@ const float64_t * pSrc, * @param[out] pDst points to output vector * @param[in] blockSize number of samples in each vector */ - void arm_and_u16( + ARM_DSP_ATTRIBUTE void arm_and_u16( const uint16_t * pSrcA, const uint16_t * pSrcB, uint16_t * pDst, @@ -666,7 +666,7 @@ const float64_t * pSrc, * @param[out] pDst points to output vector * @param[in] blockSize number of samples in each vector */ - void arm_and_u32( + ARM_DSP_ATTRIBUTE void arm_and_u32( const uint32_t * pSrcA, const uint32_t * pSrcB, uint32_t * pDst, @@ -679,7 +679,7 @@ const float64_t * pSrc, * @param[out] pDst points to output vector * @param[in] blockSize number of samples in each vector */ - void arm_and_u8( + ARM_DSP_ATTRIBUTE void arm_and_u8( const uint8_t * pSrcA, const uint8_t * pSrcB, uint8_t * pDst, @@ -692,7 +692,7 @@ const float64_t * pSrc, * @param[out] pDst points to output vector * @param[in] blockSize number of samples in each vector */ - void arm_or_u16( + ARM_DSP_ATTRIBUTE void arm_or_u16( const uint16_t * pSrcA, const uint16_t * pSrcB, uint16_t * pDst, @@ -705,7 +705,7 @@ const float64_t * pSrc, * @param[out] pDst points to output vector * @param[in] blockSize number of samples in each vector */ - void arm_or_u32( + ARM_DSP_ATTRIBUTE void arm_or_u32( const uint32_t * pSrcA, const uint32_t * pSrcB, uint32_t * pDst, @@ -718,7 +718,7 @@ const float64_t * pSrc, * @param[out] pDst points to output vector * @param[in] blockSize number of samples in each vector */ - void arm_or_u8( + ARM_DSP_ATTRIBUTE void arm_or_u8( const uint8_t * pSrcA, const uint8_t * pSrcB, uint8_t * pDst, @@ -730,7 +730,7 @@ const float64_t * pSrc, * @param[out] pDst points to output vector * @param[in] blockSize number of samples in each vector */ - void arm_not_u16( + ARM_DSP_ATTRIBUTE void arm_not_u16( const uint16_t * pSrc, uint16_t * pDst, uint32_t blockSize); @@ -741,7 +741,7 @@ const float64_t * pSrc, * @param[out] pDst points to output vector * @param[in] blockSize number of samples in each vector */ - void arm_not_u32( + ARM_DSP_ATTRIBUTE void arm_not_u32( const uint32_t * pSrc, uint32_t * pDst, uint32_t blockSize); @@ -752,7 +752,7 @@ const float64_t * pSrc, * @param[out] pDst points to output vector * @param[in] blockSize number of samples in each vector */ - void arm_not_u8( + ARM_DSP_ATTRIBUTE void arm_not_u8( const uint8_t * pSrc, uint8_t * pDst, uint32_t blockSize); @@ -764,7 +764,7 @@ const float64_t * pSrc, * @param[out] pDst points to output vector * @param[in] blockSize number of samples in each vector */ - void arm_xor_u16( + ARM_DSP_ATTRIBUTE void arm_xor_u16( const uint16_t * pSrcA, const uint16_t * pSrcB, uint16_t * pDst, @@ -777,7 +777,7 @@ const float64_t * pSrc, * @param[out] pDst points to output vector * @param[in] blockSize number of samples in each vector */ - void arm_xor_u32( + ARM_DSP_ATTRIBUTE void arm_xor_u32( const uint32_t * pSrcA, const uint32_t * pSrcB, uint32_t * pDst, @@ -790,7 +790,7 @@ const float64_t * pSrc, * @param[out] pDst points to output vector * @param[in] blockSize number of samples in each vector */ - void arm_xor_u8( + ARM_DSP_ATTRIBUTE void arm_xor_u8( const uint8_t * pSrcA, const uint8_t * pSrcB, uint8_t * pDst, @@ -805,7 +805,7 @@ const float64_t * pSrc, @param[in] numSamples number of samples to clip */ -void arm_clip_f32(const float32_t * pSrc, +ARM_DSP_ATTRIBUTE void arm_clip_f32(const float32_t * pSrc, float32_t * pDst, float32_t low, float32_t high, @@ -820,7 +820,7 @@ void arm_clip_f32(const float32_t * pSrc, @param[in] numSamples number of samples to clip */ -void arm_clip_q31(const q31_t * pSrc, +ARM_DSP_ATTRIBUTE void arm_clip_q31(const q31_t * pSrc, q31_t * pDst, q31_t low, q31_t high, @@ -835,7 +835,7 @@ void arm_clip_q31(const q31_t * pSrc, @param[in] numSamples number of samples to clip */ -void arm_clip_q15(const q15_t * pSrc, +ARM_DSP_ATTRIBUTE void arm_clip_q15(const q15_t * pSrc, q15_t * pDst, q15_t low, q15_t high, @@ -850,7 +850,7 @@ void arm_clip_q15(const q15_t * pSrc, @param[in] numSamples number of samples to clip */ -void arm_clip_q7(const q7_t * pSrc, +ARM_DSP_ATTRIBUTE void arm_clip_q7(const q7_t * pSrc, q7_t * pDst, q7_t low, q7_t high, diff --git a/Include/dsp/basic_math_functions_f16.h b/Include/dsp/basic_math_functions_f16.h index 20705cb10..c708347bf 100755 --- a/Include/dsp/basic_math_functions_f16.h +++ b/Include/dsp/basic_math_functions_f16.h @@ -24,8 +24,8 @@ */ -#ifndef _BASIC_MATH_FUNCTIONS_F16_H_ -#define _BASIC_MATH_FUNCTIONS_F16_H_ +#ifndef BASIC_MATH_FUNCTIONS_F16_H_ +#define BASIC_MATH_FUNCTIONS_F16_H_ #include "arm_math_types_f16.h" #include "arm_math_memory.h" @@ -48,7 +48,7 @@ extern "C" * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ - void arm_add_f16( + ARM_DSP_ATTRIBUTE void arm_add_f16( const float16_t * pSrcA, const float16_t * pSrcB, float16_t * pDst, @@ -61,7 +61,7 @@ extern "C" * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ - void arm_sub_f16( + ARM_DSP_ATTRIBUTE void arm_sub_f16( const float16_t * pSrcA, const float16_t * pSrcB, float16_t * pDst, @@ -74,7 +74,7 @@ extern "C" * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ - void arm_scale_f16( + ARM_DSP_ATTRIBUTE void arm_scale_f16( const float16_t * pSrc, float16_t scale, float16_t * pDst, @@ -86,7 +86,7 @@ extern "C" * @param[out] pDst points to the output buffer * @param[in] blockSize number of samples in each vector */ - void arm_abs_f16( + ARM_DSP_ATTRIBUTE void arm_abs_f16( const float16_t * pSrc, float16_t * pDst, uint32_t blockSize); @@ -99,7 +99,7 @@ extern "C" * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ - void arm_offset_f16( + ARM_DSP_ATTRIBUTE void arm_offset_f16( const float16_t * pSrc, float16_t offset, float16_t * pDst, @@ -112,7 +112,7 @@ extern "C" * @param[in] blockSize number of samples in each vector * @param[out] result output result returned here */ - void arm_dot_prod_f16( + ARM_DSP_ATTRIBUTE void arm_dot_prod_f16( const float16_t * pSrcA, const float16_t * pSrcB, uint32_t blockSize, @@ -125,7 +125,7 @@ extern "C" * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in each vector */ - void arm_mult_f16( + ARM_DSP_ATTRIBUTE void arm_mult_f16( const float16_t * pSrcA, const float16_t * pSrcB, float16_t * pDst, @@ -137,7 +137,7 @@ extern "C" * @param[out] pDst points to the output vector * @param[in] blockSize number of samples in the vector */ - void arm_negate_f16( + ARM_DSP_ATTRIBUTE void arm_negate_f16( const float16_t * pSrc, float16_t * pDst, uint32_t blockSize); @@ -150,7 +150,7 @@ extern "C" @param[in] high higher bound @param[in] numSamples number of samples to clip */ -void arm_clip_f16(const float16_t * pSrc, +ARM_DSP_ATTRIBUTE void arm_clip_f16(const float16_t * pSrc, float16_t * pDst, float16_t low, float16_t high, diff --git a/Include/dsp/bayes_functions.h b/Include/dsp/bayes_functions.h index cd780510e..bd9f4368f 100755 --- a/Include/dsp/bayes_functions.h +++ b/Include/dsp/bayes_functions.h @@ -24,8 +24,8 @@ */ -#ifndef _BAYES_FUNCTIONS_H_ -#define _BAYES_FUNCTIONS_H_ +#ifndef BAYES_FUNCTIONS_H_ +#define BAYES_FUNCTIONS_H_ #include "arm_math_types.h" #include "arm_math_memory.h" @@ -73,7 +73,7 @@ typedef struct * @param[out] *pBufferB points to a temporary buffer of length numberOfClasses * @return The predicted class */ -uint32_t arm_gaussian_naive_bayes_predict_f32(const arm_gaussian_naive_bayes_instance_f32 *S, +ARM_DSP_ATTRIBUTE uint32_t arm_gaussian_naive_bayes_predict_f32(const arm_gaussian_naive_bayes_instance_f32 *S, const float32_t * in, float32_t *pOutputProbabilities, float32_t *pBufferB); diff --git a/Include/dsp/bayes_functions_f16.h b/Include/dsp/bayes_functions_f16.h index b18bb57ff..95da5ffe8 100755 --- a/Include/dsp/bayes_functions_f16.h +++ b/Include/dsp/bayes_functions_f16.h @@ -24,8 +24,8 @@ */ -#ifndef _BAYES_FUNCTIONS_F16_H_ -#define _BAYES_FUNCTIONS_F16_H_ +#ifndef BAYES_FUNCTIONS_F16_H_ +#define BAYES_FUNCTIONS_F16_H_ #include "arm_math_types_f16.h" #include "arm_math_memory.h" @@ -64,7 +64,7 @@ typedef struct * @param[out] *pBufferB points to a temporary buffer of length numberOfClasses * @return The predicted class */ -uint32_t arm_gaussian_naive_bayes_predict_f16(const arm_gaussian_naive_bayes_instance_f16 *S, +ARM_DSP_ATTRIBUTE uint32_t arm_gaussian_naive_bayes_predict_f16(const arm_gaussian_naive_bayes_instance_f16 *S, const float16_t * in, float16_t *pOutputProbabilities, float16_t *pBufferB); diff --git a/Include/dsp/complex_math_functions.h b/Include/dsp/complex_math_functions.h index 1339ebaee..8ea0919bd 100755 --- a/Include/dsp/complex_math_functions.h +++ b/Include/dsp/complex_math_functions.h @@ -24,8 +24,8 @@ */ -#ifndef _COMPLEX_MATH_FUNCTIONS_H_ -#define _COMPLEX_MATH_FUNCTIONS_H_ +#ifndef COMPLEX_MATH_FUNCTIONS_H_ +#define COMPLEX_MATH_FUNCTIONS_H_ #include "arm_math_types.h" #include "arm_math_memory.h" @@ -55,7 +55,7 @@ extern "C" * @param[out] pDst points to the output vector * @param[in] numSamples number of complex samples in each vector */ - void arm_cmplx_conj_f32( + ARM_DSP_ATTRIBUTE void arm_cmplx_conj_f32( const float32_t * pSrc, float32_t * pDst, uint32_t numSamples); @@ -66,7 +66,7 @@ extern "C" * @param[out] pDst points to the output vector * @param[in] numSamples number of complex samples in each vector */ - void arm_cmplx_conj_q31( + ARM_DSP_ATTRIBUTE void arm_cmplx_conj_q31( const q31_t * pSrc, q31_t * pDst, uint32_t numSamples); @@ -78,7 +78,7 @@ extern "C" * @param[out] pDst points to the output vector * @param[in] numSamples number of complex samples in each vector */ - void arm_cmplx_conj_q15( + ARM_DSP_ATTRIBUTE void arm_cmplx_conj_q15( const q15_t * pSrc, q15_t * pDst, uint32_t numSamples); @@ -90,7 +90,7 @@ extern "C" * @param[out] pDst points to the real output vector * @param[in] numSamples number of complex samples in the input vector */ - void arm_cmplx_mag_squared_f32( + ARM_DSP_ATTRIBUTE void arm_cmplx_mag_squared_f32( const float32_t * pSrc, float32_t * pDst, uint32_t numSamples); @@ -102,7 +102,7 @@ extern "C" * @param[out] pDst points to the real output vector * @param[in] numSamples number of complex samples in the input vector */ - void arm_cmplx_mag_squared_f64( + ARM_DSP_ATTRIBUTE void arm_cmplx_mag_squared_f64( const float64_t * pSrc, float64_t * pDst, uint32_t numSamples); @@ -114,7 +114,7 @@ extern "C" * @param[out] pDst points to the real output vector * @param[in] numSamples number of complex samples in the input vector */ - void arm_cmplx_mag_squared_q31( + ARM_DSP_ATTRIBUTE void arm_cmplx_mag_squared_q31( const q31_t * pSrc, q31_t * pDst, uint32_t numSamples); @@ -126,7 +126,7 @@ extern "C" * @param[out] pDst points to the real output vector * @param[in] numSamples number of complex samples in the input vector */ - void arm_cmplx_mag_squared_q15( + ARM_DSP_ATTRIBUTE void arm_cmplx_mag_squared_q15( const q15_t * pSrc, q15_t * pDst, uint32_t numSamples); @@ -138,7 +138,7 @@ extern "C" * @param[out] pDst points to the real output vector * @param[in] numSamples number of complex samples in the input vector */ - void arm_cmplx_mag_f32( + ARM_DSP_ATTRIBUTE void arm_cmplx_mag_f32( const float32_t * pSrc, float32_t * pDst, uint32_t numSamples); @@ -150,7 +150,7 @@ extern "C" * @param[out] pDst points to the real output vector * @param[in] numSamples number of complex samples in the input vector */ - void arm_cmplx_mag_f64( + ARM_DSP_ATTRIBUTE void arm_cmplx_mag_f64( const float64_t * pSrc, float64_t * pDst, uint32_t numSamples); @@ -162,7 +162,7 @@ extern "C" * @param[out] pDst points to the real output vector * @param[in] numSamples number of complex samples in the input vector */ - void arm_cmplx_mag_q31( + ARM_DSP_ATTRIBUTE void arm_cmplx_mag_q31( const q31_t * pSrc, q31_t * pDst, uint32_t numSamples); @@ -174,7 +174,7 @@ extern "C" * @param[out] pDst points to the real output vector * @param[in] numSamples number of complex samples in the input vector */ - void arm_cmplx_mag_q15( + ARM_DSP_ATTRIBUTE void arm_cmplx_mag_q15( const q15_t * pSrc, q15_t * pDst, uint32_t numSamples); @@ -185,7 +185,7 @@ extern "C" * @param[out] pDst points to the real output vector * @param[in] numSamples number of complex samples in the input vector */ - void arm_cmplx_mag_fast_q15( + ARM_DSP_ATTRIBUTE void arm_cmplx_mag_fast_q15( const q15_t * pSrc, q15_t * pDst, uint32_t numSamples); @@ -199,7 +199,7 @@ extern "C" * @param[out] realResult real part of the result returned here * @param[out] imagResult imaginary part of the result returned here */ - void arm_cmplx_dot_prod_q15( + ARM_DSP_ATTRIBUTE void arm_cmplx_dot_prod_q15( const q15_t * pSrcA, const q15_t * pSrcB, uint32_t numSamples, @@ -215,7 +215,7 @@ extern "C" * @param[out] realResult real part of the result returned here * @param[out] imagResult imaginary part of the result returned here */ - void arm_cmplx_dot_prod_q31( + ARM_DSP_ATTRIBUTE void arm_cmplx_dot_prod_q31( const q31_t * pSrcA, const q31_t * pSrcB, uint32_t numSamples, @@ -231,7 +231,7 @@ extern "C" * @param[out] realResult real part of the result returned here * @param[out] imagResult imaginary part of the result returned here */ - void arm_cmplx_dot_prod_f32( + ARM_DSP_ATTRIBUTE void arm_cmplx_dot_prod_f32( const float32_t * pSrcA, const float32_t * pSrcB, uint32_t numSamples, @@ -246,7 +246,7 @@ extern "C" * @param[out] pCmplxDst points to the complex output vector * @param[in] numSamples number of samples in each vector */ - void arm_cmplx_mult_real_q15( + ARM_DSP_ATTRIBUTE void arm_cmplx_mult_real_q15( const q15_t * pSrcCmplx, const q15_t * pSrcReal, q15_t * pCmplxDst, @@ -260,7 +260,7 @@ extern "C" * @param[out] pCmplxDst points to the complex output vector * @param[in] numSamples number of samples in each vector */ - void arm_cmplx_mult_real_q31( + ARM_DSP_ATTRIBUTE void arm_cmplx_mult_real_q31( const q31_t * pSrcCmplx, const q31_t * pSrcReal, q31_t * pCmplxDst, @@ -274,7 +274,7 @@ extern "C" * @param[out] pCmplxDst points to the complex output vector * @param[in] numSamples number of samples in each vector */ - void arm_cmplx_mult_real_f32( + ARM_DSP_ATTRIBUTE void arm_cmplx_mult_real_f32( const float32_t * pSrcCmplx, const float32_t * pSrcReal, float32_t * pCmplxDst, @@ -287,7 +287,7 @@ extern "C" * @param[out] pDst points to the output vector * @param[in] numSamples number of complex samples in each vector */ - void arm_cmplx_mult_cmplx_q15( + ARM_DSP_ATTRIBUTE void arm_cmplx_mult_cmplx_q15( const q15_t * pSrcA, const q15_t * pSrcB, q15_t * pDst, @@ -301,7 +301,7 @@ extern "C" * @param[out] pDst points to the output vector * @param[in] numSamples number of complex samples in each vector */ - void arm_cmplx_mult_cmplx_q31( + ARM_DSP_ATTRIBUTE void arm_cmplx_mult_cmplx_q31( const q31_t * pSrcA, const q31_t * pSrcB, q31_t * pDst, @@ -315,7 +315,7 @@ extern "C" * @param[out] pDst points to the output vector * @param[in] numSamples number of complex samples in each vector */ - void arm_cmplx_mult_cmplx_f32( + ARM_DSP_ATTRIBUTE void arm_cmplx_mult_cmplx_f32( const float32_t * pSrcA, const float32_t * pSrcB, float32_t * pDst, @@ -330,7 +330,7 @@ extern "C" * @param[out] pDst points to the output vector * @param[in] numSamples number of complex samples in each vector */ -void arm_cmplx_mult_cmplx_f64( +ARM_DSP_ATTRIBUTE void arm_cmplx_mult_cmplx_f64( const float64_t * pSrcA, const float64_t * pSrcB, float64_t * pDst, diff --git a/Include/dsp/complex_math_functions_f16.h b/Include/dsp/complex_math_functions_f16.h index b17f9314e..3561a32c3 100755 --- a/Include/dsp/complex_math_functions_f16.h +++ b/Include/dsp/complex_math_functions_f16.h @@ -24,8 +24,8 @@ */ -#ifndef _COMPLEX_MATH_FUNCTIONS_F16_H_ -#define _COMPLEX_MATH_FUNCTIONS_F16_H_ +#ifndef COMPLEX_MATH_FUNCTIONS_F16_H_ +#define COMPLEX_MATH_FUNCTIONS_F16_H_ #include "arm_math_types_f16.h" #include "arm_math_memory.h" @@ -47,7 +47,7 @@ extern "C" * @param[out] pDst points to the output vector * @param[in] numSamples number of complex samples in each vector */ - void arm_cmplx_conj_f16( + ARM_DSP_ATTRIBUTE void arm_cmplx_conj_f16( const float16_t * pSrc, float16_t * pDst, uint32_t numSamples); @@ -58,7 +58,7 @@ extern "C" * @param[out] pDst points to the real output vector * @param[in] numSamples number of complex samples in the input vector */ - void arm_cmplx_mag_squared_f16( + ARM_DSP_ATTRIBUTE void arm_cmplx_mag_squared_f16( const float16_t * pSrc, float16_t * pDst, uint32_t numSamples); @@ -69,7 +69,7 @@ extern "C" * @param[out] pDst points to the real output vector * @param[in] numSamples number of complex samples in the input vector */ - void arm_cmplx_mag_f16( + ARM_DSP_ATTRIBUTE void arm_cmplx_mag_f16( const float16_t * pSrc, float16_t * pDst, uint32_t numSamples); @@ -82,7 +82,7 @@ extern "C" * @param[out] realResult real part of the result returned here * @param[out] imagResult imaginary part of the result returned here */ - void arm_cmplx_dot_prod_f16( + ARM_DSP_ATTRIBUTE void arm_cmplx_dot_prod_f16( const float16_t * pSrcA, const float16_t * pSrcB, uint32_t numSamples, @@ -96,7 +96,7 @@ extern "C" * @param[out] pCmplxDst points to the complex output vector * @param[in] numSamples number of samples in each vector */ - void arm_cmplx_mult_real_f16( + ARM_DSP_ATTRIBUTE void arm_cmplx_mult_real_f16( const float16_t * pSrcCmplx, const float16_t * pSrcReal, float16_t * pCmplxDst, @@ -109,7 +109,7 @@ extern "C" * @param[out] pDst points to the output vector * @param[in] numSamples number of complex samples in each vector */ - void arm_cmplx_mult_cmplx_f16( + ARM_DSP_ATTRIBUTE void arm_cmplx_mult_cmplx_f16( const float16_t * pSrcA, const float16_t * pSrcB, float16_t * pDst, diff --git a/Include/dsp/controller_functions.h b/Include/dsp/controller_functions.h index 85389ed01..b3a359ab0 100755 --- a/Include/dsp/controller_functions.h +++ b/Include/dsp/controller_functions.h @@ -24,8 +24,8 @@ */ -#ifndef _CONTROLLER_FUNCTIONS_H_ -#define _CONTROLLER_FUNCTIONS_H_ +#ifndef CONTROLLER_FUNCTIONS_H_ +#define CONTROLLER_FUNCTIONS_H_ #include "arm_math_types.h" #include "arm_math_memory.h" @@ -87,7 +87,7 @@ extern "C" * @param[out] pSinVal points to the processed sine output. * @param[out] pCosVal points to the processed cos output. */ - void arm_sin_cos_f32( + ARM_DSP_ATTRIBUTE void arm_sin_cos_f32( float32_t theta, float32_t * pSinVal, float32_t * pCosVal); @@ -99,7 +99,7 @@ extern "C" * @param[out] pSinVal points to the processed sine output. * @param[out] pCosVal points to the processed cosine output. */ - void arm_sin_cos_q31( + ARM_DSP_ATTRIBUTE void arm_sin_cos_q31( q31_t theta, q31_t * pSinVal, q31_t * pCosVal); @@ -224,7 +224,7 @@ extern "C" * @param[in,out] S points to an instance of the PID structure. * @param[in] resetStateFlag flag to reset the state. 0 = no change in state 1 = reset the state. */ - void arm_pid_init_f32( + ARM_DSP_ATTRIBUTE void arm_pid_init_f32( arm_pid_instance_f32 * S, int32_t resetStateFlag); @@ -233,7 +233,7 @@ extern "C" * @brief Reset function for the floating-point PID Control. * @param[in,out] S is an instance of the floating-point PID Control structure */ - void arm_pid_reset_f32( + ARM_DSP_ATTRIBUTE void arm_pid_reset_f32( arm_pid_instance_f32 * S); @@ -242,7 +242,7 @@ extern "C" * @param[in,out] S points to an instance of the Q15 PID structure. * @param[in] resetStateFlag flag to reset the state. 0 = no change in state 1 = reset the state. */ - void arm_pid_init_q31( + ARM_DSP_ATTRIBUTE void arm_pid_init_q31( arm_pid_instance_q31 * S, int32_t resetStateFlag); @@ -252,7 +252,7 @@ extern "C" * @param[in,out] S points to an instance of the Q31 PID Control structure */ - void arm_pid_reset_q31( + ARM_DSP_ATTRIBUTE void arm_pid_reset_q31( arm_pid_instance_q31 * S); @@ -261,7 +261,7 @@ extern "C" * @param[in,out] S points to an instance of the Q15 PID structure. * @param[in] resetStateFlag flag to reset the state. 0 = no change in state 1 = reset the state. */ - void arm_pid_init_q15( + ARM_DSP_ATTRIBUTE void arm_pid_init_q15( arm_pid_instance_q15 * S, int32_t resetStateFlag); @@ -270,7 +270,7 @@ extern "C" * @brief Reset function for the Q15 PID Control. * @param[in,out] S points to an instance of the q15 PID Control structure */ - void arm_pid_reset_q15( + ARM_DSP_ATTRIBUTE void arm_pid_reset_q15( arm_pid_instance_q15 * S); @@ -315,7 +315,7 @@ extern "C" The function is implemented using an internal 64-bit accumulator. The accumulator has a 2.62 format and maintains full precision of the intermediate multiplication results but provides only a single guard bit. Thus, if the accumulator result overflows it wraps around rather than clip. - In order to avoid overflows completely the input signal must be scaled down by 2 bits as there are four additions. + In order to aARM_DSP_ATTRIBUTE void overflows completely the input signal must be scaled down by 2 bits as there are four additions. After all multiply-accumulates are performed, the 2.62 accumulator is truncated to 1.32 format and then saturated to 1.31 format. */ __STATIC_FORCEINLINE q31_t arm_pid_q31( diff --git a/Include/dsp/controller_functions_f16.h b/Include/dsp/controller_functions_f16.h index 8fae483c1..a4622ec3d 100755 --- a/Include/dsp/controller_functions_f16.h +++ b/Include/dsp/controller_functions_f16.h @@ -24,8 +24,8 @@ */ -#ifndef _CONTROLLER_FUNCTIONS_F16_H_ -#define _CONTROLLER_FUNCTIONS_F16_H_ +#ifndef CONTROLLER_FUNCTIONS_F16_H_ +#define CONTROLLER_FUNCTIONS_F16_H_ #ifdef __cplusplus extern "C" diff --git a/Include/dsp/debug.h b/Include/dsp/debug.h index c95804cea..b98e03893 100644 --- a/Include/dsp/debug.h +++ b/Include/dsp/debug.h @@ -24,8 +24,8 @@ */ -#ifndef _DEBUG_FUNCTIONS_H_ -#define _DEBUG_FUNCTIONS_H_ +#ifndef DEBUG_FUNCTIONS_H_ +#define DEBUG_FUNCTIONS_H_ #include "arm_math_types.h" #include "arm_math_memory.h" diff --git a/Include/dsp/distance_functions.h b/Include/dsp/distance_functions.h index 354cd4e09..ce2413b67 100755 --- a/Include/dsp/distance_functions.h +++ b/Include/dsp/distance_functions.h @@ -24,8 +24,8 @@ */ -#ifndef _DISTANCE_FUNCTIONS_H_ -#define _DISTANCE_FUNCTIONS_H_ +#ifndef DISTANCE_FUNCTIONS_H_ +#define DISTANCE_FUNCTIONS_H_ #include "arm_math_types.h" #include "arm_math_memory.h" @@ -52,12 +52,6 @@ extern "C" * */ -/* 6.14 bug */ -#if defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6100100) && (__ARMCC_VERSION < 6150001) - -__attribute__((weak)) float __powisf2(float a, int b); - -#endif /** * @brief Euclidean distance between two vectors @@ -68,7 +62,7 @@ __attribute__((weak)) float __powisf2(float a, int b); * */ -float32_t arm_euclidean_distance_f32(const float32_t *pA,const float32_t *pB, uint32_t blockSize); +ARM_DSP_ATTRIBUTE float32_t arm_euclidean_distance_f32(const float32_t *pA,const float32_t *pB, uint32_t blockSize); /** * @brief Euclidean distance between two vectors @@ -79,7 +73,7 @@ float32_t arm_euclidean_distance_f32(const float32_t *pA,const float32_t *pB, ui * */ -float64_t arm_euclidean_distance_f64(const float64_t *pA,const float64_t *pB, uint32_t blockSize); +ARM_DSP_ATTRIBUTE float64_t arm_euclidean_distance_f64(const float64_t *pA,const float64_t *pB, uint32_t blockSize); /** * @brief Bray-Curtis distance between two vectors @@ -89,7 +83,7 @@ float64_t arm_euclidean_distance_f64(const float64_t *pA,const float64_t *pB, ui * @return distance * */ -float32_t arm_braycurtis_distance_f32(const float32_t *pA,const float32_t *pB, uint32_t blockSize); +ARM_DSP_ATTRIBUTE float32_t arm_braycurtis_distance_f32(const float32_t *pA,const float32_t *pB, uint32_t blockSize); /** * @brief Canberra distance between two vectors @@ -104,7 +98,7 @@ float32_t arm_braycurtis_distance_f32(const float32_t *pA,const float32_t *pB, u * @return distance * */ -float32_t arm_canberra_distance_f32(const float32_t *pA,const float32_t *pB, uint32_t blockSize); +ARM_DSP_ATTRIBUTE float32_t arm_canberra_distance_f32(const float32_t *pA,const float32_t *pB, uint32_t blockSize); /** @@ -115,7 +109,7 @@ float32_t arm_canberra_distance_f32(const float32_t *pA,const float32_t *pB, uin * @return distance * */ -float32_t arm_chebyshev_distance_f32(const float32_t *pA,const float32_t *pB, uint32_t blockSize); +ARM_DSP_ATTRIBUTE float32_t arm_chebyshev_distance_f32(const float32_t *pA,const float32_t *pB, uint32_t blockSize); /** @@ -126,7 +120,7 @@ float32_t arm_chebyshev_distance_f32(const float32_t *pA,const float32_t *pB, ui * @return distance * */ -float64_t arm_chebyshev_distance_f64(const float64_t *pA,const float64_t *pB, uint32_t blockSize); +ARM_DSP_ATTRIBUTE float64_t arm_chebyshev_distance_f64(const float64_t *pA,const float64_t *pB, uint32_t blockSize); /** @@ -137,7 +131,7 @@ float64_t arm_chebyshev_distance_f64(const float64_t *pA,const float64_t *pB, ui * @return distance * */ -float32_t arm_cityblock_distance_f32(const float32_t *pA,const float32_t *pB, uint32_t blockSize); +ARM_DSP_ATTRIBUTE float32_t arm_cityblock_distance_f32(const float32_t *pA,const float32_t *pB, uint32_t blockSize); /** * @brief Cityblock (Manhattan) distance between two vectors @@ -147,7 +141,7 @@ float32_t arm_cityblock_distance_f32(const float32_t *pA,const float32_t *pB, ui * @return distance * */ -float64_t arm_cityblock_distance_f64(const float64_t *pA,const float64_t *pB, uint32_t blockSize); +ARM_DSP_ATTRIBUTE float64_t arm_cityblock_distance_f64(const float64_t *pA,const float64_t *pB, uint32_t blockSize); /** * @brief Correlation distance between two vectors @@ -160,7 +154,7 @@ float64_t arm_cityblock_distance_f64(const float64_t *pA,const float64_t *pB, ui * @return distance * */ -float32_t arm_correlation_distance_f32(float32_t *pA,float32_t *pB, uint32_t blockSize); +ARM_DSP_ATTRIBUTE float32_t arm_correlation_distance_f32(float32_t *pA,float32_t *pB, uint32_t blockSize); /** * @brief Cosine distance between two vectors @@ -172,7 +166,7 @@ float32_t arm_correlation_distance_f32(float32_t *pA,float32_t *pB, uint32_t blo * */ -float32_t arm_cosine_distance_f32(const float32_t *pA,const float32_t *pB, uint32_t blockSize); +ARM_DSP_ATTRIBUTE float32_t arm_cosine_distance_f32(const float32_t *pA,const float32_t *pB, uint32_t blockSize); /** * @brief Cosine distance between two vectors @@ -184,7 +178,7 @@ float32_t arm_cosine_distance_f32(const float32_t *pA,const float32_t *pB, uint3 * */ -float64_t arm_cosine_distance_f64(const float64_t *pA,const float64_t *pB, uint32_t blockSize); +ARM_DSP_ATTRIBUTE float64_t arm_cosine_distance_f64(const float64_t *pA,const float64_t *pB, uint32_t blockSize); /** * @brief Jensen-Shannon distance between two vectors @@ -206,7 +200,7 @@ float64_t arm_cosine_distance_f64(const float64_t *pA,const float64_t *pB, uint3 * */ -float32_t arm_jensenshannon_distance_f32(const float32_t *pA,const float32_t *pB,uint32_t blockSize); +ARM_DSP_ATTRIBUTE float32_t arm_jensenshannon_distance_f32(const float32_t *pA,const float32_t *pB,uint32_t blockSize); /** * @brief Minkowski distance between two vectors @@ -221,7 +215,7 @@ float32_t arm_jensenshannon_distance_f32(const float32_t *pA,const float32_t *pB -float32_t arm_minkowski_distance_f32(const float32_t *pA,const float32_t *pB, int32_t order, uint32_t blockSize); +ARM_DSP_ATTRIBUTE float32_t arm_minkowski_distance_f32(const float32_t *pA,const float32_t *pB, int32_t order, uint32_t blockSize); /** * @brief Dice distance between two vectors @@ -235,7 +229,7 @@ float32_t arm_minkowski_distance_f32(const float32_t *pA,const float32_t *pB, in */ -float32_t arm_dice_distance(const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools); +ARM_DSP_ATTRIBUTE float32_t arm_dice_distance(const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools); /** * @brief Hamming distance between two vectors @@ -247,7 +241,7 @@ float32_t arm_dice_distance(const uint32_t *pA, const uint32_t *pB, uint32_t num * */ -float32_t arm_hamming_distance(const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools); +ARM_DSP_ATTRIBUTE float32_t arm_hamming_distance(const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools); /** * @brief Jaccard distance between two vectors @@ -259,7 +253,7 @@ float32_t arm_hamming_distance(const uint32_t *pA, const uint32_t *pB, uint32_t * */ -float32_t arm_jaccard_distance(const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools); +ARM_DSP_ATTRIBUTE float32_t arm_jaccard_distance(const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools); /** * @brief Kulsinski distance between two vectors @@ -271,7 +265,7 @@ float32_t arm_jaccard_distance(const uint32_t *pA, const uint32_t *pB, uint32_t * */ -float32_t arm_kulsinski_distance(const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools); +ARM_DSP_ATTRIBUTE float32_t arm_kulsinski_distance(const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools); /** * @brief Roger Stanimoto distance between two vectors @@ -283,7 +277,7 @@ float32_t arm_kulsinski_distance(const uint32_t *pA, const uint32_t *pB, uint32_ * */ -float32_t arm_rogerstanimoto_distance(const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools); +ARM_DSP_ATTRIBUTE float32_t arm_rogerstanimoto_distance(const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools); /** * @brief Russell-Rao distance between two vectors @@ -295,7 +289,7 @@ float32_t arm_rogerstanimoto_distance(const uint32_t *pA, const uint32_t *pB, ui * */ -float32_t arm_russellrao_distance(const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools); +ARM_DSP_ATTRIBUTE float32_t arm_russellrao_distance(const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools); /** * @brief Sokal-Michener distance between two vectors @@ -307,7 +301,7 @@ float32_t arm_russellrao_distance(const uint32_t *pA, const uint32_t *pB, uint32 * */ -float32_t arm_sokalmichener_distance(const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools); +ARM_DSP_ATTRIBUTE float32_t arm_sokalmichener_distance(const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools); /** * @brief Sokal-Sneath distance between two vectors @@ -319,7 +313,7 @@ float32_t arm_sokalmichener_distance(const uint32_t *pA, const uint32_t *pB, uin * */ -float32_t arm_sokalsneath_distance(const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools); +ARM_DSP_ATTRIBUTE float32_t arm_sokalsneath_distance(const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools); /** * @brief Yule distance between two vectors @@ -331,7 +325,7 @@ float32_t arm_sokalsneath_distance(const uint32_t *pA, const uint32_t *pB, uint3 * */ -float32_t arm_yule_distance(const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools); +ARM_DSP_ATTRIBUTE float32_t arm_yule_distance(const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools); typedef enum { @@ -348,7 +342,7 @@ typedef enum * @return Error if window type not recognized * */ -arm_status arm_dtw_init_window_q7(const arm_dtw_window windowType, +ARM_DSP_ATTRIBUTE arm_status arm_dtw_init_window_q7(const arm_dtw_window windowType, const int32_t windowSize, arm_matrix_instance_q7 *pWindow); @@ -362,7 +356,7 @@ arm_status arm_dtw_init_window_q7(const arm_dtw_window windowType, * */ -arm_status arm_dtw_distance_f32(const arm_matrix_instance_f32 *pDistance, +ARM_DSP_ATTRIBUTE arm_status arm_dtw_distance_f32(const arm_matrix_instance_f32 *pDistance, const arm_matrix_instance_q7 *pWindow, arm_matrix_instance_f32 *pDTW, float32_t *distance); @@ -376,7 +370,7 @@ arm_status arm_dtw_distance_f32(const arm_matrix_instance_f32 *pDistance, * */ -void arm_dtw_path_f32(const arm_matrix_instance_f32 *pDTW, +ARM_DSP_ATTRIBUTE void arm_dtw_path_f32(const arm_matrix_instance_f32 *pDTW, int16_t *pPath, uint32_t *pathLength); #ifdef __cplusplus diff --git a/Include/dsp/distance_functions_f16.h b/Include/dsp/distance_functions_f16.h index 4e74dd183..4b927ee72 100755 --- a/Include/dsp/distance_functions_f16.h +++ b/Include/dsp/distance_functions_f16.h @@ -24,8 +24,8 @@ */ -#ifndef _DISTANCE_FUNCTIONS_F16_H_ -#define _DISTANCE_FUNCTIONS_F16_H_ +#ifndef DISTANCE_FUNCTIONS_F16_H_ +#define DISTANCE_FUNCTIONS_F16_H_ #include "arm_math_types_f16.h" #include "arm_math_memory.h" @@ -58,7 +58,7 @@ extern "C" * @param[in] blockSize vector length * @return distance */ -float16_t arm_euclidean_distance_f16(const float16_t *pA,const float16_t *pB, uint32_t blockSize); +ARM_DSP_ATTRIBUTE float16_t arm_euclidean_distance_f16(const float16_t *pA,const float16_t *pB, uint32_t blockSize); /** @@ -68,7 +68,7 @@ float16_t arm_euclidean_distance_f16(const float16_t *pA,const float16_t *pB, ui * @param[in] blockSize vector length * @return distance */ -float16_t arm_braycurtis_distance_f16(const float16_t *pA,const float16_t *pB, uint32_t blockSize); +ARM_DSP_ATTRIBUTE float16_t arm_braycurtis_distance_f16(const float16_t *pA,const float16_t *pB, uint32_t blockSize); /** * @brief Canberra distance between two vectors @@ -82,7 +82,7 @@ float16_t arm_braycurtis_distance_f16(const float16_t *pA,const float16_t *pB, u * @param[in] blockSize vector length * @return distance */ -float16_t arm_canberra_distance_f16(const float16_t *pA,const float16_t *pB, uint32_t blockSize); +ARM_DSP_ATTRIBUTE float16_t arm_canberra_distance_f16(const float16_t *pA,const float16_t *pB, uint32_t blockSize); /** @@ -92,7 +92,7 @@ float16_t arm_canberra_distance_f16(const float16_t *pA,const float16_t *pB, uin * @param[in] blockSize vector length * @return distance */ -float16_t arm_chebyshev_distance_f16(const float16_t *pA,const float16_t *pB, uint32_t blockSize); +ARM_DSP_ATTRIBUTE float16_t arm_chebyshev_distance_f16(const float16_t *pA,const float16_t *pB, uint32_t blockSize); /** @@ -102,7 +102,7 @@ float16_t arm_chebyshev_distance_f16(const float16_t *pA,const float16_t *pB, ui * @param[in] blockSize vector length * @return distance */ -float16_t arm_cityblock_distance_f16(const float16_t *pA,const float16_t *pB, uint32_t blockSize); +ARM_DSP_ATTRIBUTE float16_t arm_cityblock_distance_f16(const float16_t *pA,const float16_t *pB, uint32_t blockSize); /** @@ -115,7 +115,7 @@ float16_t arm_cityblock_distance_f16(const float16_t *pA,const float16_t *pB, ui * @param[in] blockSize vector length * @return distance */ -float16_t arm_correlation_distance_f16(float16_t *pA,float16_t *pB, uint32_t blockSize); +ARM_DSP_ATTRIBUTE float16_t arm_correlation_distance_f16(float16_t *pA,float16_t *pB, uint32_t blockSize); /** @@ -126,7 +126,7 @@ float16_t arm_correlation_distance_f16(float16_t *pA,float16_t *pB, uint32_t blo * @param[in] blockSize vector length * @return distance */ -float16_t arm_cosine_distance_f16(const float16_t *pA,const float16_t *pB, uint32_t blockSize); +ARM_DSP_ATTRIBUTE float16_t arm_cosine_distance_f16(const float16_t *pA,const float16_t *pB, uint32_t blockSize); /** @@ -147,7 +147,7 @@ float16_t arm_cosine_distance_f16(const float16_t *pA,const float16_t *pB, uint3 * @param[in] blockSize vector length * @return distance */ -float16_t arm_jensenshannon_distance_f16(const float16_t *pA,const float16_t *pB,uint32_t blockSize); +ARM_DSP_ATTRIBUTE float16_t arm_jensenshannon_distance_f16(const float16_t *pA,const float16_t *pB,uint32_t blockSize); /** @@ -159,7 +159,7 @@ float16_t arm_jensenshannon_distance_f16(const float16_t *pA,const float16_t *pB * @param[in] blockSize vector length * @return distance */ -float16_t arm_minkowski_distance_f16(const float16_t *pA,const float16_t *pB, int32_t order, uint32_t blockSize); +ARM_DSP_ATTRIBUTE float16_t arm_minkowski_distance_f16(const float16_t *pA,const float16_t *pB, int32_t order, uint32_t blockSize); #endif /*defined(ARM_FLOAT16_SUPPORTED)*/ diff --git a/Include/dsp/fast_math_functions.h b/Include/dsp/fast_math_functions.h index a9c756708..774becb51 100755 --- a/Include/dsp/fast_math_functions.h +++ b/Include/dsp/fast_math_functions.h @@ -24,8 +24,8 @@ */ -#ifndef _FAST_MATH_FUNCTIONS_H_ -#define _FAST_MATH_FUNCTIONS_H_ +#ifndef FAST_MATH_FUNCTIONS_H_ +#define FAST_MATH_FUNCTIONS_H_ #include "arm_math_types.h" #include "arm_math_memory.h" @@ -75,7 +75,7 @@ extern "C" * @param[in] x input value in radians. * @return sin(x). */ - float32_t arm_sin_f32( + ARM_DSP_ATTRIBUTE float32_t arm_sin_f32( float32_t x); @@ -84,7 +84,7 @@ extern "C" * @param[in] x Scaled input value in radians. * @return sin(x). */ - q31_t arm_sin_q31( + ARM_DSP_ATTRIBUTE q31_t arm_sin_q31( q31_t x); /** @@ -92,7 +92,7 @@ extern "C" * @param[in] x Scaled input value in radians. * @return sin(x). */ - q15_t arm_sin_q15( + ARM_DSP_ATTRIBUTE q15_t arm_sin_q15( q15_t x); @@ -101,7 +101,7 @@ extern "C" * @param[in] x input value in radians. * @return cos(x). */ - float32_t arm_cos_f32( + ARM_DSP_ATTRIBUTE float32_t arm_cos_f32( float32_t x); @@ -110,7 +110,7 @@ extern "C" * @param[in] x Scaled input value in radians. * @return cos(x). */ - q31_t arm_cos_q31( + ARM_DSP_ATTRIBUTE q31_t arm_cos_q31( q31_t x); @@ -119,7 +119,7 @@ extern "C" * @param[in] x Scaled input value in radians. * @return cos(x). */ - q15_t arm_cos_q15( + ARM_DSP_ATTRIBUTE q15_t arm_cos_q15( q15_t x); @@ -129,7 +129,7 @@ extern "C" @param[out] pDst points to the output vector @param[in] blockSize number of samples in each vector */ - void arm_vlog_f32( + ARM_DSP_ATTRIBUTE void arm_vlog_f32( const float32_t * pSrc, float32_t * pDst, uint32_t blockSize); @@ -142,7 +142,7 @@ extern "C" @param[out] pDst points to the output vector @param[in] blockSize number of samples in each vector */ - void arm_vlog_f64( + ARM_DSP_ATTRIBUTE void arm_vlog_f64( const float64_t * pSrc, float64_t * pDst, uint32_t blockSize); @@ -155,7 +155,7 @@ extern "C" * @param[out] pDst points to the output vector in q5.26 * @param[in] blockSize number of samples in each vector */ - void arm_vlog_q31(const q31_t * pSrc, + ARM_DSP_ATTRIBUTE void arm_vlog_q31(const q31_t * pSrc, q31_t * pDst, uint32_t blockSize); @@ -165,7 +165,7 @@ extern "C" * @param[out] pDst points to the output vector in q4.11 * @param[in] blockSize number of samples in each vector */ - void arm_vlog_q15(const q15_t * pSrc, + ARM_DSP_ATTRIBUTE void arm_vlog_q15(const q15_t * pSrc, q15_t * pDst, uint32_t blockSize); @@ -177,7 +177,7 @@ extern "C" @param[out] pDst points to the output vector @param[in] blockSize number of samples in each vector */ - void arm_vexp_f32( + ARM_DSP_ATTRIBUTE void arm_vexp_f32( const float32_t * pSrc, float32_t * pDst, uint32_t blockSize); @@ -190,7 +190,7 @@ extern "C" @param[out] pDst points to the output vector @param[in] blockSize number of samples in each vector */ - void arm_vexp_f64( + ARM_DSP_ATTRIBUTE void arm_vexp_f64( const float64_t * pSrc, float64_t * pDst, uint32_t blockSize); @@ -283,7 +283,7 @@ __STATIC_FORCEINLINE arm_status arm_sqrt_f32( - \ref ARM_MATH_SUCCESS : input value is positive - \ref ARM_MATH_ARGUMENT_ERROR : input value is negative; *pOut is set to 0 */ -arm_status arm_sqrt_q31( +ARM_DSP_ATTRIBUTE arm_status arm_sqrt_q31( q31_t in, q31_t * pOut); @@ -296,7 +296,7 @@ arm_status arm_sqrt_q31( - \ref ARM_MATH_SUCCESS : input value is positive - \ref ARM_MATH_ARGUMENT_ERROR : input value is negative; *pOut is set to 0 */ -arm_status arm_sqrt_q15( +ARM_DSP_ATTRIBUTE arm_status arm_sqrt_q15( q15_t in, q15_t * pOut); @@ -318,7 +318,7 @@ arm_status arm_sqrt_q15( to the saturated negative or positive value. */ -arm_status arm_divide_q15(q15_t numerator, +ARM_DSP_ATTRIBUTE arm_status arm_divide_q15(q15_t numerator, q15_t denominator, q15_t *quotient, int16_t *shift); @@ -335,7 +335,7 @@ arm_status arm_divide_q15(q15_t numerator, to the saturated negative or positive value. */ -arm_status arm_divide_q31(q31_t numerator, +ARM_DSP_ATTRIBUTE arm_status arm_divide_q31(q31_t numerator, q31_t denominator, q31_t *quotient, int16_t *shift); @@ -349,7 +349,7 @@ arm_status arm_divide_q31(q31_t numerator, @param[out] result Result @return error status. */ - arm_status arm_atan2_f32(float32_t y,float32_t x,float32_t *result); + ARM_DSP_ATTRIBUTE arm_status arm_atan2_f32(float32_t y,float32_t x,float32_t *result); /** @@ -359,7 +359,7 @@ arm_status arm_divide_q31(q31_t numerator, @param[out] result Result in Q2.29 @return error status. */ - arm_status arm_atan2_q31(q31_t y,q31_t x,q31_t *result); + ARM_DSP_ATTRIBUTE arm_status arm_atan2_q31(q31_t y,q31_t x,q31_t *result); /** @brief Arc tangent in radian of y/x using sign of x and y to determine right quadrant. @@ -368,7 +368,7 @@ arm_status arm_divide_q31(q31_t numerator, @param[out] result Result in Q2.13 @return error status. */ - arm_status arm_atan2_q15(q15_t y,q15_t x,q15_t *result); + ARM_DSP_ATTRIBUTE arm_status arm_atan2_q15(q15_t y,q15_t x,q15_t *result); #ifdef __cplusplus } diff --git a/Include/dsp/fast_math_functions_f16.h b/Include/dsp/fast_math_functions_f16.h index b8ebef5e8..4aa30ee8e 100755 --- a/Include/dsp/fast_math_functions_f16.h +++ b/Include/dsp/fast_math_functions_f16.h @@ -24,8 +24,8 @@ */ -#ifndef _FAST_MATH_FUNCTIONS_F16_H_ -#define _FAST_MATH_FUNCTIONS_F16_H_ +#ifndef FAST_MATH_FUNCTIONS_F16_H_ +#define FAST_MATH_FUNCTIONS_F16_H_ #include "arm_math_types_f16.h" #include "arm_math_memory.h" @@ -78,7 +78,7 @@ __STATIC_FORCEINLINE arm_status arm_sqrt_f16( @param[out] pDst points to the output vector @param[in] blockSize number of samples in each vector */ - void arm_vlog_f16( + ARM_DSP_ATTRIBUTE void arm_vlog_f16( const float16_t * pSrc, float16_t * pDst, uint32_t blockSize); @@ -89,7 +89,7 @@ __STATIC_FORCEINLINE arm_status arm_sqrt_f16( @param[out] pDst points to the output vector @param[in] blockSize number of samples in each vector */ - void arm_vexp_f16( + ARM_DSP_ATTRIBUTE void arm_vexp_f16( const float16_t * pSrc, float16_t * pDst, uint32_t blockSize); @@ -100,7 +100,7 @@ __STATIC_FORCEINLINE arm_status arm_sqrt_f16( @param[out] pDst points to the output vector @param[in] blockSize number of samples in each vector */ - void arm_vinverse_f16( + ARM_DSP_ATTRIBUTE void arm_vinverse_f16( const float16_t * pSrc, float16_t * pDst, uint32_t blockSize); @@ -112,7 +112,7 @@ __STATIC_FORCEINLINE arm_status arm_sqrt_f16( @param[out] result Result @return error status. */ - arm_status arm_atan2_f16(float16_t y,float16_t x,float16_t *result); + ARM_DSP_ATTRIBUTE arm_status arm_atan2_f16(float16_t y,float16_t x,float16_t *result); #endif /*defined(ARM_FLOAT16_SUPPORTED)*/ #ifdef __cplusplus diff --git a/Include/dsp/filtering_functions.h b/Include/dsp/filtering_functions.h index c24d9d566..7944fcab7 100755 --- a/Include/dsp/filtering_functions.h +++ b/Include/dsp/filtering_functions.h @@ -24,8 +24,8 @@ */ -#ifndef _FILTERING_FUNCTIONS_H_ -#define _FILTERING_FUNCTIONS_H_ +#ifndef FILTERING_FUNCTIONS_H_ +#define FILTERING_FUNCTIONS_H_ #include "arm_math_types.h" #include "arm_math_memory.h" @@ -107,7 +107,7 @@ extern "C" * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ - void arm_fir_q7( + ARM_DSP_ATTRIBUTE void arm_fir_q7( const arm_fir_instance_q7 * S, const q7_t * pSrc, q7_t * pDst, @@ -124,7 +124,7 @@ extern "C" * For the MVE version, the coefficient length must be a multiple of 16. * You can pad with zeros if you have less coefficients. */ - void arm_fir_init_q7( + ARM_DSP_ATTRIBUTE void arm_fir_init_q7( arm_fir_instance_q7 * S, uint16_t numTaps, const q7_t * pCoeffs, @@ -138,7 +138,7 @@ extern "C" * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ - void arm_fir_q15( + ARM_DSP_ATTRIBUTE void arm_fir_q15( const arm_fir_instance_q15 * S, const q15_t * pSrc, q15_t * pDst, @@ -151,7 +151,7 @@ extern "C" * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ - void arm_fir_fast_q15( + ARM_DSP_ATTRIBUTE void arm_fir_fast_q15( const arm_fir_instance_q15 * S, const q15_t * pSrc, q15_t * pDst, @@ -172,7 +172,7 @@ extern "C" * You can pad with zeros if you have less coefficients. * */ - arm_status arm_fir_init_q15( + ARM_DSP_ATTRIBUTE arm_status arm_fir_init_q15( arm_fir_instance_q15 * S, uint16_t numTaps, const q15_t * pCoeffs, @@ -186,7 +186,7 @@ extern "C" * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ - void arm_fir_q31( + ARM_DSP_ATTRIBUTE void arm_fir_q31( const arm_fir_instance_q31 * S, const q31_t * pSrc, q31_t * pDst, @@ -199,7 +199,7 @@ extern "C" * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ - void arm_fir_fast_q31( + ARM_DSP_ATTRIBUTE void arm_fir_fast_q31( const arm_fir_instance_q31 * S, const q31_t * pSrc, q31_t * pDst, @@ -216,7 +216,7 @@ extern "C" * For the MVE version, the coefficient length must be a multiple of 4. * You can pad with zeros if you have less coefficients. */ - void arm_fir_init_q31( + ARM_DSP_ATTRIBUTE void arm_fir_init_q31( arm_fir_instance_q31 * S, uint16_t numTaps, const q31_t * pCoeffs, @@ -230,7 +230,7 @@ extern "C" * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ - void arm_fir_f32( + ARM_DSP_ATTRIBUTE void arm_fir_f32( const arm_fir_instance_f32 * S, const float32_t * pSrc, float32_t * pDst, @@ -243,7 +243,7 @@ extern "C" * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ - void arm_fir_f64( + ARM_DSP_ATTRIBUTE void arm_fir_f64( const arm_fir_instance_f64 * S, const float64_t * pSrc, float64_t * pDst, @@ -257,7 +257,7 @@ extern "C" * @param[in] pState points to the state buffer. * @param[in] blockSize number of samples that are processed at a time. */ - void arm_fir_init_f32( + ARM_DSP_ATTRIBUTE void arm_fir_init_f32( arm_fir_instance_f32 * S, uint16_t numTaps, const float32_t * pCoeffs, @@ -272,7 +272,7 @@ extern "C" * @param[in] pState points to the state buffer. * @param[in] blockSize number of samples that are processed at a time. */ - void arm_fir_init_f64( + ARM_DSP_ATTRIBUTE void arm_fir_init_f64( arm_fir_instance_f64 * S, uint16_t numTaps, const float64_t * pCoeffs, @@ -328,7 +328,7 @@ extern "C" * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ - void arm_biquad_cascade_df1_q15( + ARM_DSP_ATTRIBUTE void arm_biquad_cascade_df1_q15( const arm_biquad_casd_df1_inst_q15 * S, const q15_t * pSrc, q15_t * pDst, @@ -342,7 +342,7 @@ extern "C" * @param[in] pState points to the state buffer. * @param[in] postShift Shift to be applied to the output. Varies according to the coefficients format */ - void arm_biquad_cascade_df1_init_q15( + ARM_DSP_ATTRIBUTE void arm_biquad_cascade_df1_init_q15( arm_biquad_casd_df1_inst_q15 * S, uint8_t numStages, const q15_t * pCoeffs, @@ -356,7 +356,7 @@ extern "C" * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ - void arm_biquad_cascade_df1_fast_q15( + ARM_DSP_ATTRIBUTE void arm_biquad_cascade_df1_fast_q15( const arm_biquad_casd_df1_inst_q15 * S, const q15_t * pSrc, q15_t * pDst, @@ -369,7 +369,7 @@ extern "C" * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ - void arm_biquad_cascade_df1_q31( + ARM_DSP_ATTRIBUTE void arm_biquad_cascade_df1_q31( const arm_biquad_casd_df1_inst_q31 * S, const q31_t * pSrc, q31_t * pDst, @@ -382,7 +382,7 @@ extern "C" * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ - void arm_biquad_cascade_df1_fast_q31( + ARM_DSP_ATTRIBUTE void arm_biquad_cascade_df1_fast_q31( const arm_biquad_casd_df1_inst_q31 * S, const q31_t * pSrc, q31_t * pDst, @@ -396,7 +396,7 @@ extern "C" * @param[in] pState points to the state buffer. * @param[in] postShift Shift to be applied to the output. Varies according to the coefficients format */ - void arm_biquad_cascade_df1_init_q31( + ARM_DSP_ATTRIBUTE void arm_biquad_cascade_df1_init_q31( arm_biquad_casd_df1_inst_q31 * S, uint8_t numStages, const q31_t * pCoeffs, @@ -410,7 +410,7 @@ extern "C" * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ - void arm_biquad_cascade_df1_f32( + ARM_DSP_ATTRIBUTE void arm_biquad_cascade_df1_f32( const arm_biquad_casd_df1_inst_f32 * S, const float32_t * pSrc, float32_t * pDst, @@ -425,7 +425,7 @@ extern "C" * @param[in] pState points to the state buffer. */ #if defined(ARM_MATH_MVEF) && !defined(ARM_MATH_AUTOVECTORIZE) - void arm_biquad_cascade_df1_mve_init_f32( + ARM_DSP_ATTRIBUTE void arm_biquad_cascade_df1_mve_init_f32( arm_biquad_casd_df1_inst_f32 * S, uint8_t numStages, const float32_t * pCoeffs, @@ -433,7 +433,7 @@ extern "C" float32_t * pState); #endif - void arm_biquad_cascade_df1_init_f32( + ARM_DSP_ATTRIBUTE void arm_biquad_cascade_df1_init_f32( arm_biquad_casd_df1_inst_f32 * S, uint8_t numStages, const float32_t * pCoeffs, @@ -448,7 +448,7 @@ extern "C" * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the location where the output result is written. Length srcALen+srcBLen-1. */ - void arm_conv_f32( + ARM_DSP_ATTRIBUTE void arm_conv_f32( const float32_t * pSrcA, uint32_t srcALen, const float32_t * pSrcB, @@ -466,7 +466,7 @@ extern "C" * @param[in] pScratch1 points to scratch buffer of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. * @param[in] pScratch2 points to scratch buffer of size min(srcALen, srcBLen). */ - void arm_conv_opt_q15( + ARM_DSP_ATTRIBUTE void arm_conv_opt_q15( const q15_t * pSrcA, uint32_t srcALen, const q15_t * pSrcB, @@ -484,7 +484,7 @@ extern "C" * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the location where the output result is written. Length srcALen+srcBLen-1. */ - void arm_conv_q15( + ARM_DSP_ATTRIBUTE void arm_conv_q15( const q15_t * pSrcA, uint32_t srcALen, const q15_t * pSrcB, @@ -500,7 +500,7 @@ extern "C" * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data Length srcALen+srcBLen-1. */ - void arm_conv_fast_q15( + ARM_DSP_ATTRIBUTE void arm_conv_fast_q15( const q15_t * pSrcA, uint32_t srcALen, const q15_t * pSrcB, @@ -518,7 +518,7 @@ extern "C" * @param[in] pScratch1 points to scratch buffer of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. * @param[in] pScratch2 points to scratch buffer of size min(srcALen, srcBLen). */ - void arm_conv_fast_opt_q15( + ARM_DSP_ATTRIBUTE void arm_conv_fast_opt_q15( const q15_t * pSrcA, uint32_t srcALen, const q15_t * pSrcB, @@ -536,7 +536,7 @@ extern "C" * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data Length srcALen+srcBLen-1. */ - void arm_conv_q31( + ARM_DSP_ATTRIBUTE void arm_conv_q31( const q31_t * pSrcA, uint32_t srcALen, const q31_t * pSrcB, @@ -552,7 +552,7 @@ extern "C" * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data Length srcALen+srcBLen-1. */ - void arm_conv_fast_q31( + ARM_DSP_ATTRIBUTE void arm_conv_fast_q31( const q31_t * pSrcA, uint32_t srcALen, const q31_t * pSrcB, @@ -570,7 +570,7 @@ extern "C" * @param[in] pScratch1 points to scratch buffer(of type q15_t) of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. * @param[in] pScratch2 points to scratch buffer (of type q15_t) of size min(srcALen, srcBLen). */ - void arm_conv_opt_q7( + ARM_DSP_ATTRIBUTE void arm_conv_opt_q7( const q7_t * pSrcA, uint32_t srcALen, const q7_t * pSrcB, @@ -588,7 +588,7 @@ extern "C" * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data Length srcALen+srcBLen-1. */ - void arm_conv_q7( + ARM_DSP_ATTRIBUTE void arm_conv_q7( const q7_t * pSrcA, uint32_t srcALen, const q7_t * pSrcB, @@ -607,7 +607,7 @@ extern "C" * @param[in] numPoints is the number of output points to be computed. * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. */ - arm_status arm_conv_partial_f32( + ARM_DSP_ATTRIBUTE arm_status arm_conv_partial_f32( const float32_t * pSrcA, uint32_t srcALen, const float32_t * pSrcB, @@ -630,7 +630,7 @@ extern "C" * @param[in] pScratch2 points to scratch buffer of size min(srcALen, srcBLen). * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. */ - arm_status arm_conv_partial_opt_q15( + ARM_DSP_ATTRIBUTE arm_status arm_conv_partial_opt_q15( const q15_t * pSrcA, uint32_t srcALen, const q15_t * pSrcB, @@ -653,7 +653,7 @@ extern "C" * @param[in] numPoints is the number of output points to be computed. * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. */ - arm_status arm_conv_partial_q15( + ARM_DSP_ATTRIBUTE arm_status arm_conv_partial_q15( const q15_t * pSrcA, uint32_t srcALen, const q15_t * pSrcB, @@ -674,7 +674,7 @@ extern "C" * @param[in] numPoints is the number of output points to be computed. * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. */ - arm_status arm_conv_partial_fast_q15( + ARM_DSP_ATTRIBUTE arm_status arm_conv_partial_fast_q15( const q15_t * pSrcA, uint32_t srcALen, const q15_t * pSrcB, @@ -697,7 +697,7 @@ extern "C" * @param[in] pScratch2 points to scratch buffer of size min(srcALen, srcBLen). * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. */ - arm_status arm_conv_partial_fast_opt_q15( + ARM_DSP_ATTRIBUTE arm_status arm_conv_partial_fast_opt_q15( const q15_t * pSrcA, uint32_t srcALen, const q15_t * pSrcB, @@ -720,7 +720,7 @@ extern "C" * @param[in] numPoints is the number of output points to be computed. * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. */ - arm_status arm_conv_partial_q31( + ARM_DSP_ATTRIBUTE arm_status arm_conv_partial_q31( const q31_t * pSrcA, uint32_t srcALen, const q31_t * pSrcB, @@ -741,7 +741,7 @@ extern "C" * @param[in] numPoints is the number of output points to be computed. * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. */ - arm_status arm_conv_partial_fast_q31( + ARM_DSP_ATTRIBUTE arm_status arm_conv_partial_fast_q31( const q31_t * pSrcA, uint32_t srcALen, const q31_t * pSrcB, @@ -764,7 +764,7 @@ extern "C" * @param[in] pScratch2 points to scratch buffer (of type q15_t) of size min(srcALen, srcBLen). * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. */ - arm_status arm_conv_partial_opt_q7( + ARM_DSP_ATTRIBUTE arm_status arm_conv_partial_opt_q7( const q7_t * pSrcA, uint32_t srcALen, const q7_t * pSrcB, @@ -787,7 +787,7 @@ extern "C" * @param[in] numPoints is the number of output points to be computed. * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. */ - arm_status arm_conv_partial_q7( + ARM_DSP_ATTRIBUTE arm_status arm_conv_partial_q7( const q7_t * pSrcA, uint32_t srcALen, const q7_t * pSrcB, @@ -848,7 +848,7 @@ typedef struct @param[out] pDst points to the block of output data @param[in] blockSize number of samples to process */ - void arm_fir_decimate_f64( + ARM_DSP_ATTRIBUTE void arm_fir_decimate_f64( const arm_fir_decimate_instance_f64 * S, const float64_t * pSrc, float64_t * pDst, @@ -867,7 +867,7 @@ typedef struct - \ref ARM_MATH_SUCCESS : Operation successful - \ref ARM_MATH_LENGTH_ERROR : blockSize is not a multiple of M */ - arm_status arm_fir_decimate_init_f64( + ARM_DSP_ATTRIBUTE arm_status arm_fir_decimate_init_f64( arm_fir_decimate_instance_f64 * S, uint16_t numTaps, uint8_t M, @@ -883,7 +883,7 @@ typedef struct @param[out] pDst points to the block of output data @param[in] blockSize number of samples to process */ -void arm_fir_decimate_f32( +ARM_DSP_ATTRIBUTE void arm_fir_decimate_f32( const arm_fir_decimate_instance_f32 * S, const float32_t * pSrc, float32_t * pDst, @@ -902,7 +902,7 @@ void arm_fir_decimate_f32( - \ref ARM_MATH_SUCCESS : Operation successful - \ref ARM_MATH_LENGTH_ERROR : blockSize is not a multiple of M */ -arm_status arm_fir_decimate_init_f32( +ARM_DSP_ATTRIBUTE arm_status arm_fir_decimate_init_f32( arm_fir_decimate_instance_f32 * S, uint16_t numTaps, uint8_t M, @@ -918,7 +918,7 @@ arm_status arm_fir_decimate_init_f32( * @param[out] pDst points to the block of output data * @param[in] blockSize number of input samples to process per call. */ - void arm_fir_decimate_q15( + ARM_DSP_ATTRIBUTE void arm_fir_decimate_q15( const arm_fir_decimate_instance_q15 * S, const q15_t * pSrc, q15_t * pDst, @@ -932,7 +932,7 @@ arm_status arm_fir_decimate_init_f32( * @param[out] pDst points to the block of output data * @param[in] blockSize number of input samples to process per call. */ - void arm_fir_decimate_fast_q15( + ARM_DSP_ATTRIBUTE void arm_fir_decimate_fast_q15( const arm_fir_decimate_instance_q15 * S, const q15_t * pSrc, q15_t * pDst, @@ -950,7 +950,7 @@ arm_status arm_fir_decimate_init_f32( * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if * blockSize is not a multiple of M. */ - arm_status arm_fir_decimate_init_q15( + ARM_DSP_ATTRIBUTE arm_status arm_fir_decimate_init_q15( arm_fir_decimate_instance_q15 * S, uint16_t numTaps, uint8_t M, @@ -966,7 +966,7 @@ arm_status arm_fir_decimate_init_f32( * @param[out] pDst points to the block of output data * @param[in] blockSize number of input samples to process per call. */ - void arm_fir_decimate_q31( + ARM_DSP_ATTRIBUTE void arm_fir_decimate_q31( const arm_fir_decimate_instance_q31 * S, const q31_t * pSrc, q31_t * pDst, @@ -979,7 +979,7 @@ arm_status arm_fir_decimate_init_f32( * @param[out] pDst points to the block of output data * @param[in] blockSize number of input samples to process per call. */ - void arm_fir_decimate_fast_q31( + ARM_DSP_ATTRIBUTE void arm_fir_decimate_fast_q31( const arm_fir_decimate_instance_q31 * S, const q31_t * pSrc, q31_t * pDst, @@ -997,7 +997,7 @@ arm_status arm_fir_decimate_init_f32( * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if * blockSize is not a multiple of M. */ - arm_status arm_fir_decimate_init_q31( + ARM_DSP_ATTRIBUTE arm_status arm_fir_decimate_init_q31( arm_fir_decimate_instance_q31 * S, uint16_t numTaps, uint8_t M, @@ -1047,7 +1047,7 @@ arm_status arm_fir_decimate_init_f32( * @param[out] pDst points to the block of output data. * @param[in] blockSize number of input samples to process per call. */ - void arm_fir_interpolate_q15( + ARM_DSP_ATTRIBUTE void arm_fir_interpolate_q15( const arm_fir_interpolate_instance_q15 * S, const q15_t * pSrc, q15_t * pDst, @@ -1065,7 +1065,7 @@ arm_status arm_fir_decimate_init_f32( * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if * the filter length numTaps is not a multiple of the interpolation factor L. */ - arm_status arm_fir_interpolate_init_q15( + ARM_DSP_ATTRIBUTE arm_status arm_fir_interpolate_init_q15( arm_fir_interpolate_instance_q15 * S, uint8_t L, uint16_t numTaps, @@ -1081,7 +1081,7 @@ arm_status arm_fir_decimate_init_f32( * @param[out] pDst points to the block of output data. * @param[in] blockSize number of input samples to process per call. */ - void arm_fir_interpolate_q31( + ARM_DSP_ATTRIBUTE void arm_fir_interpolate_q31( const arm_fir_interpolate_instance_q31 * S, const q31_t * pSrc, q31_t * pDst, @@ -1099,7 +1099,7 @@ arm_status arm_fir_decimate_init_f32( * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if * the filter length numTaps is not a multiple of the interpolation factor L. */ - arm_status arm_fir_interpolate_init_q31( + ARM_DSP_ATTRIBUTE arm_status arm_fir_interpolate_init_q31( arm_fir_interpolate_instance_q31 * S, uint8_t L, uint16_t numTaps, @@ -1115,7 +1115,7 @@ arm_status arm_fir_decimate_init_f32( * @param[out] pDst points to the block of output data. * @param[in] blockSize number of input samples to process per call. */ - void arm_fir_interpolate_f32( + ARM_DSP_ATTRIBUTE void arm_fir_interpolate_f32( const arm_fir_interpolate_instance_f32 * S, const float32_t * pSrc, float32_t * pDst, @@ -1133,7 +1133,7 @@ arm_status arm_fir_decimate_init_f32( * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if * the filter length numTaps is not a multiple of the interpolation factor L. */ - arm_status arm_fir_interpolate_init_f32( + ARM_DSP_ATTRIBUTE arm_status arm_fir_interpolate_init_f32( arm_fir_interpolate_instance_f32 * S, uint8_t L, uint16_t numTaps, @@ -1160,7 +1160,7 @@ arm_status arm_fir_decimate_init_f32( * @param[out] pDst points to the block of output data * @param[in] blockSize number of samples to process. */ - void arm_biquad_cas_df1_32x64_q31( + ARM_DSP_ATTRIBUTE void arm_biquad_cas_df1_32x64_q31( const arm_biquad_cas_df1_32x64_ins_q31 * S, const q31_t * pSrc, q31_t * pDst, @@ -1174,7 +1174,7 @@ arm_status arm_fir_decimate_init_f32( * @param[in] pState points to the state buffer. * @param[in] postShift shift to be applied to the output. Varies according to the coefficients format */ - void arm_biquad_cas_df1_32x64_init_q31( + ARM_DSP_ATTRIBUTE void arm_biquad_cas_df1_32x64_init_q31( arm_biquad_cas_df1_32x64_ins_q31 * S, uint8_t numStages, const q31_t * pCoeffs, @@ -1220,7 +1220,7 @@ arm_status arm_fir_decimate_init_f32( * @param[out] pDst points to the block of output data * @param[in] blockSize number of samples to process. */ - void arm_biquad_cascade_df2T_f32( + ARM_DSP_ATTRIBUTE void arm_biquad_cascade_df2T_f32( const arm_biquad_cascade_df2T_instance_f32 * S, const float32_t * pSrc, float32_t * pDst, @@ -1234,7 +1234,7 @@ arm_status arm_fir_decimate_init_f32( * @param[out] pDst points to the block of output data * @param[in] blockSize number of samples to process. */ - void arm_biquad_cascade_stereo_df2T_f32( + ARM_DSP_ATTRIBUTE void arm_biquad_cascade_stereo_df2T_f32( const arm_biquad_cascade_stereo_df2T_instance_f32 * S, const float32_t * pSrc, float32_t * pDst, @@ -1248,7 +1248,7 @@ arm_status arm_fir_decimate_init_f32( * @param[out] pDst points to the block of output data * @param[in] blockSize number of samples to process. */ - void arm_biquad_cascade_df2T_f64( + ARM_DSP_ATTRIBUTE void arm_biquad_cascade_df2T_f64( const arm_biquad_cascade_df2T_instance_f64 * S, const float64_t * pSrc, float64_t * pDst, @@ -1262,7 +1262,7 @@ arm_status arm_fir_decimate_init_f32( @param[in] pCoeffs points to the original filter coefficients. @param[in] pComputedCoeffs points to the new computed coefficients for the vectorized version. */ -void arm_biquad_cascade_df2T_compute_coefs_f32( +ARM_DSP_ATTRIBUTE void arm_biquad_cascade_df2T_compute_coefs_f32( uint8_t numStages, const float32_t * pCoeffs, float32_t * pComputedCoeffs); @@ -1274,7 +1274,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[in] pCoeffs points to the filter coefficients. * @param[in] pState points to the state buffer. */ - void arm_biquad_cascade_df2T_init_f32( + ARM_DSP_ATTRIBUTE void arm_biquad_cascade_df2T_init_f32( arm_biquad_cascade_df2T_instance_f32 * S, uint8_t numStages, const float32_t * pCoeffs, @@ -1288,7 +1288,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[in] pCoeffs points to the filter coefficients. * @param[in] pState points to the state buffer. */ - void arm_biquad_cascade_stereo_df2T_init_f32( + ARM_DSP_ATTRIBUTE void arm_biquad_cascade_stereo_df2T_init_f32( arm_biquad_cascade_stereo_df2T_instance_f32 * S, uint8_t numStages, const float32_t * pCoeffs, @@ -1302,7 +1302,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[in] pCoeffs points to the filter coefficients. * @param[in] pState points to the state buffer. */ - void arm_biquad_cascade_df2T_init_f64( + ARM_DSP_ATTRIBUTE void arm_biquad_cascade_df2T_init_f64( arm_biquad_cascade_df2T_instance_f64 * S, uint8_t numStages, const float64_t * pCoeffs, @@ -1347,7 +1347,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[in] pCoeffs points to the coefficient buffer. The array is of length numStages. * @param[in] pState points to the state buffer. The array is of length numStages. */ - void arm_fir_lattice_init_q15( + ARM_DSP_ATTRIBUTE void arm_fir_lattice_init_q15( arm_fir_lattice_instance_q15 * S, uint16_t numStages, const q15_t * pCoeffs, @@ -1361,7 +1361,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ - void arm_fir_lattice_q15( + ARM_DSP_ATTRIBUTE void arm_fir_lattice_q15( const arm_fir_lattice_instance_q15 * S, const q15_t * pSrc, q15_t * pDst, @@ -1375,7 +1375,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[in] pCoeffs points to the coefficient buffer. The array is of length numStages. * @param[in] pState points to the state buffer. The array is of length numStages. */ - void arm_fir_lattice_init_q31( + ARM_DSP_ATTRIBUTE void arm_fir_lattice_init_q31( arm_fir_lattice_instance_q31 * S, uint16_t numStages, const q31_t * pCoeffs, @@ -1389,7 +1389,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[out] pDst points to the block of output data * @param[in] blockSize number of samples to process. */ - void arm_fir_lattice_q31( + ARM_DSP_ATTRIBUTE void arm_fir_lattice_q31( const arm_fir_lattice_instance_q31 * S, const q31_t * pSrc, q31_t * pDst, @@ -1403,7 +1403,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[in] pCoeffs points to the coefficient buffer. The array is of length numStages. * @param[in] pState points to the state buffer. The array is of length numStages. */ - void arm_fir_lattice_init_f32( + ARM_DSP_ATTRIBUTE void arm_fir_lattice_init_f32( arm_fir_lattice_instance_f32 * S, uint16_t numStages, const float32_t * pCoeffs, @@ -1417,7 +1417,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[out] pDst points to the block of output data * @param[in] blockSize number of samples to process. */ - void arm_fir_lattice_f32( + ARM_DSP_ATTRIBUTE void arm_fir_lattice_f32( const arm_fir_lattice_instance_f32 * S, const float32_t * pSrc, float32_t * pDst, @@ -1465,7 +1465,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ - void arm_iir_lattice_f32( + ARM_DSP_ATTRIBUTE void arm_iir_lattice_f32( const arm_iir_lattice_instance_f32 * S, const float32_t * pSrc, float32_t * pDst, @@ -1481,7 +1481,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[in] pState points to the state buffer. The array is of length numStages+blockSize-1. * @param[in] blockSize number of samples to process. */ - void arm_iir_lattice_init_f32( + ARM_DSP_ATTRIBUTE void arm_iir_lattice_init_f32( arm_iir_lattice_instance_f32 * S, uint16_t numStages, float32_t * pkCoeffs, @@ -1497,7 +1497,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ - void arm_iir_lattice_q31( + ARM_DSP_ATTRIBUTE void arm_iir_lattice_q31( const arm_iir_lattice_instance_q31 * S, const q31_t * pSrc, q31_t * pDst, @@ -1513,7 +1513,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[in] pState points to the state buffer. The array is of length numStages+blockSize. * @param[in] blockSize number of samples to process. */ - void arm_iir_lattice_init_q31( + ARM_DSP_ATTRIBUTE void arm_iir_lattice_init_q31( arm_iir_lattice_instance_q31 * S, uint16_t numStages, q31_t * pkCoeffs, @@ -1529,7 +1529,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ - void arm_iir_lattice_q15( + ARM_DSP_ATTRIBUTE void arm_iir_lattice_q15( const arm_iir_lattice_instance_q15 * S, const q15_t * pSrc, q15_t * pDst, @@ -1545,7 +1545,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[in] pState points to state buffer. The array is of length numStages+blockSize. * @param[in] blockSize number of samples to process per call. */ - void arm_iir_lattice_init_q15( + ARM_DSP_ATTRIBUTE void arm_iir_lattice_init_q15( arm_iir_lattice_instance_q15 * S, uint16_t numStages, q15_t * pkCoeffs, @@ -1575,7 +1575,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[out] pErr points to the block of error data. * @param[in] blockSize number of samples to process. */ - void arm_lms_f32( + ARM_DSP_ATTRIBUTE void arm_lms_f32( const arm_lms_instance_f32 * S, const float32_t * pSrc, float32_t * pRef, @@ -1593,7 +1593,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[in] mu step size that controls filter coefficient updates. * @param[in] blockSize number of samples to process. */ - void arm_lms_init_f32( + ARM_DSP_ATTRIBUTE void arm_lms_init_f32( arm_lms_instance_f32 * S, uint16_t numTaps, float32_t * pCoeffs, @@ -1625,7 +1625,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[in] blockSize number of samples to process. * @param[in] postShift bit shift applied to coefficients. */ - void arm_lms_init_q15( + ARM_DSP_ATTRIBUTE void arm_lms_init_q15( arm_lms_instance_q15 * S, uint16_t numTaps, q15_t * pCoeffs, @@ -1644,7 +1644,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[out] pErr points to the block of error data. * @param[in] blockSize number of samples to process. */ - void arm_lms_q15( + ARM_DSP_ATTRIBUTE void arm_lms_q15( const arm_lms_instance_q15 * S, const q15_t * pSrc, q15_t * pRef, @@ -1675,7 +1675,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[out] pErr points to the block of error data. * @param[in] blockSize number of samples to process. */ - void arm_lms_q31( + ARM_DSP_ATTRIBUTE void arm_lms_q31( const arm_lms_instance_q31 * S, const q31_t * pSrc, q31_t * pRef, @@ -1694,7 +1694,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[in] blockSize number of samples to process. * @param[in] postShift bit shift applied to coefficients. */ - void arm_lms_init_q31( + ARM_DSP_ATTRIBUTE void arm_lms_init_q31( arm_lms_instance_q31 * S, uint16_t numTaps, q31_t * pCoeffs, @@ -1727,7 +1727,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[out] pErr points to the block of error data. * @param[in] blockSize number of samples to process. */ - void arm_lms_norm_f32( + ARM_DSP_ATTRIBUTE void arm_lms_norm_f32( arm_lms_norm_instance_f32 * S, const float32_t * pSrc, float32_t * pRef, @@ -1745,7 +1745,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[in] mu step size that controls filter coefficient updates. * @param[in] blockSize number of samples to process. */ - void arm_lms_norm_init_f32( + ARM_DSP_ATTRIBUTE void arm_lms_norm_init_f32( arm_lms_norm_instance_f32 * S, uint16_t numTaps, float32_t * pCoeffs, @@ -1779,7 +1779,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[out] pErr points to the block of error data. * @param[in] blockSize number of samples to process. */ - void arm_lms_norm_q31( + ARM_DSP_ATTRIBUTE void arm_lms_norm_q31( arm_lms_norm_instance_q31 * S, const q31_t * pSrc, q31_t * pRef, @@ -1798,7 +1798,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[in] blockSize number of samples to process. * @param[in] postShift bit shift applied to coefficients. */ - void arm_lms_norm_init_q31( + ARM_DSP_ATTRIBUTE void arm_lms_norm_init_q31( arm_lms_norm_instance_q31 * S, uint16_t numTaps, q31_t * pCoeffs, @@ -1833,7 +1833,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[out] pErr points to the block of error data. * @param[in] blockSize number of samples to process. */ - void arm_lms_norm_q15( + ARM_DSP_ATTRIBUTE void arm_lms_norm_q15( arm_lms_norm_instance_q15 * S, const q15_t * pSrc, q15_t * pRef, @@ -1852,7 +1852,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[in] blockSize number of samples to process. * @param[in] postShift bit shift applied to coefficients. */ - void arm_lms_norm_init_q15( + ARM_DSP_ATTRIBUTE void arm_lms_norm_init_q15( arm_lms_norm_instance_q15 * S, uint16_t numTaps, q15_t * pCoeffs, @@ -1870,7 +1870,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. */ - void arm_correlate_f32( + ARM_DSP_ATTRIBUTE void arm_correlate_f32( const float32_t * pSrcA, uint32_t srcALen, const float32_t * pSrcB, @@ -1886,7 +1886,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. */ - void arm_correlate_f64( + ARM_DSP_ATTRIBUTE void arm_correlate_f64( const float64_t * pSrcA, uint32_t srcALen, const float64_t * pSrcB, @@ -1903,7 +1903,7 @@ void arm_biquad_cascade_df2T_compute_coefs_f32( @param[out] pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. @param[in] pScratch points to scratch buffer of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. */ -void arm_correlate_opt_q15( +ARM_DSP_ATTRIBUTE void arm_correlate_opt_q15( const q15_t * pSrcA, uint32_t srcALen, const q15_t * pSrcB, @@ -1920,7 +1920,7 @@ void arm_correlate_opt_q15( @param[in] srcBLen length of the second input sequence @param[out] pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. */ - void arm_correlate_q15( + ARM_DSP_ATTRIBUTE void arm_correlate_q15( const q15_t * pSrcA, uint32_t srcALen, const q15_t * pSrcB, @@ -1936,7 +1936,7 @@ void arm_correlate_opt_q15( @param[in] srcBLen length of the second input sequence @param[out] pDst points to the location where the output result is written. Length 2 * max(srcALen, srcBLen) - 1. */ -void arm_correlate_fast_q15( +ARM_DSP_ATTRIBUTE void arm_correlate_fast_q15( const q15_t * pSrcA, uint32_t srcALen, const q15_t * pSrcB, @@ -1953,7 +1953,7 @@ void arm_correlate_fast_q15( @param[out] pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. @param[in] pScratch points to scratch buffer of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. */ -void arm_correlate_fast_opt_q15( +ARM_DSP_ATTRIBUTE void arm_correlate_fast_opt_q15( const q15_t * pSrcA, uint32_t srcALen, const q15_t * pSrcB, @@ -1970,7 +1970,7 @@ void arm_correlate_fast_opt_q15( * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. */ - void arm_correlate_q31( + ARM_DSP_ATTRIBUTE void arm_correlate_q31( const q31_t * pSrcA, uint32_t srcALen, const q31_t * pSrcB, @@ -1986,7 +1986,7 @@ void arm_correlate_fast_opt_q15( @param[in] srcBLen length of the second input sequence @param[out] pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. */ -void arm_correlate_fast_q31( +ARM_DSP_ATTRIBUTE void arm_correlate_fast_q31( const q31_t * pSrcA, uint32_t srcALen, const q31_t * pSrcB, @@ -2004,7 +2004,7 @@ void arm_correlate_fast_q31( * @param[in] pScratch1 points to scratch buffer(of type q15_t) of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. * @param[in] pScratch2 points to scratch buffer (of type q15_t) of size min(srcALen, srcBLen). */ - void arm_correlate_opt_q7( + ARM_DSP_ATTRIBUTE void arm_correlate_opt_q7( const q7_t * pSrcA, uint32_t srcALen, const q7_t * pSrcB, @@ -2022,7 +2022,7 @@ void arm_correlate_fast_q31( * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. */ - void arm_correlate_q7( + ARM_DSP_ATTRIBUTE void arm_correlate_q7( const q7_t * pSrcA, uint32_t srcALen, const q7_t * pSrcB, @@ -2091,7 +2091,7 @@ void arm_correlate_fast_q31( * @param[in] pScratchIn points to a temporary buffer of size blockSize. * @param[in] blockSize number of input samples to process per call. */ - void arm_fir_sparse_f32( + ARM_DSP_ATTRIBUTE void arm_fir_sparse_f32( arm_fir_sparse_instance_f32 * S, const float32_t * pSrc, float32_t * pDst, @@ -2109,7 +2109,7 @@ void arm_correlate_fast_q31( * @param[in] maxDelay maximum offset time supported. * @param[in] blockSize number of samples that will be processed per block. */ - void arm_fir_sparse_init_f32( + ARM_DSP_ATTRIBUTE void arm_fir_sparse_init_f32( arm_fir_sparse_instance_f32 * S, uint16_t numTaps, const float32_t * pCoeffs, @@ -2127,7 +2127,7 @@ void arm_correlate_fast_q31( * @param[in] pScratchIn points to a temporary buffer of size blockSize. * @param[in] blockSize number of input samples to process per call. */ - void arm_fir_sparse_q31( + ARM_DSP_ATTRIBUTE void arm_fir_sparse_q31( arm_fir_sparse_instance_q31 * S, const q31_t * pSrc, q31_t * pDst, @@ -2145,7 +2145,7 @@ void arm_correlate_fast_q31( * @param[in] maxDelay maximum offset time supported. * @param[in] blockSize number of samples that will be processed per block. */ - void arm_fir_sparse_init_q31( + ARM_DSP_ATTRIBUTE void arm_fir_sparse_init_q31( arm_fir_sparse_instance_q31 * S, uint16_t numTaps, const q31_t * pCoeffs, @@ -2164,7 +2164,7 @@ void arm_correlate_fast_q31( * @param[in] pScratchOut points to a temporary buffer of size blockSize. * @param[in] blockSize number of input samples to process per call. */ - void arm_fir_sparse_q15( + ARM_DSP_ATTRIBUTE void arm_fir_sparse_q15( arm_fir_sparse_instance_q15 * S, const q15_t * pSrc, q15_t * pDst, @@ -2183,7 +2183,7 @@ void arm_correlate_fast_q31( * @param[in] maxDelay maximum offset time supported. * @param[in] blockSize number of samples that will be processed per block. */ - void arm_fir_sparse_init_q15( + ARM_DSP_ATTRIBUTE void arm_fir_sparse_init_q15( arm_fir_sparse_instance_q15 * S, uint16_t numTaps, const q15_t * pCoeffs, @@ -2202,7 +2202,7 @@ void arm_correlate_fast_q31( * @param[in] pScratchOut points to a temporary buffer of size blockSize. * @param[in] blockSize number of input samples to process per call. */ - void arm_fir_sparse_q7( + ARM_DSP_ATTRIBUTE void arm_fir_sparse_q7( arm_fir_sparse_instance_q7 * S, const q7_t * pSrc, q7_t * pDst, @@ -2221,7 +2221,7 @@ void arm_correlate_fast_q31( * @param[in] maxDelay maximum offset time supported. * @param[in] blockSize number of samples that will be processed per block. */ - void arm_fir_sparse_init_q7( + ARM_DSP_ATTRIBUTE void arm_fir_sparse_init_q7( arm_fir_sparse_instance_q7 * S, uint16_t numTaps, const q7_t * pCoeffs, @@ -2545,7 +2545,7 @@ void arm_correlate_fast_q31( @param[out] err prediction error (variance) @param[in] nbCoefs number of autoregressive coefficients */ -void arm_levinson_durbin_f32(const float32_t *phi, +ARM_DSP_ATTRIBUTE void arm_levinson_durbin_f32(const float32_t *phi, float32_t *a, float32_t *err, int nbCoefs); @@ -2558,7 +2558,7 @@ void arm_levinson_durbin_f32(const float32_t *phi, @param[out] err prediction error (variance) @param[in] nbCoefs number of autoregressive coefficients */ -void arm_levinson_durbin_q31(const q31_t *phi, +ARM_DSP_ATTRIBUTE void arm_levinson_durbin_q31(const q31_t *phi, q31_t *a, q31_t *err, int nbCoefs); diff --git a/Include/dsp/filtering_functions_f16.h b/Include/dsp/filtering_functions_f16.h index 250ae0f97..d7f97398e 100755 --- a/Include/dsp/filtering_functions_f16.h +++ b/Include/dsp/filtering_functions_f16.h @@ -24,8 +24,8 @@ */ -#ifndef _FILTERING_FUNCTIONS_F16_H_ -#define _FILTERING_FUNCTIONS_F16_H_ +#ifndef FILTERING_FUNCTIONS_F16_H_ +#define FILTERING_FUNCTIONS_F16_H_ #include "arm_math_types_f16.h" #include "arm_math_memory.h" @@ -59,7 +59,7 @@ extern "C" * @param[in] pState points to the state buffer. * @param[in] blockSize number of samples that are processed at a time. */ - void arm_fir_init_f16( + ARM_DSP_ATTRIBUTE void arm_fir_init_f16( arm_fir_instance_f16 * S, uint16_t numTaps, const float16_t * pCoeffs, @@ -73,7 +73,7 @@ extern "C" * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ - void arm_fir_f16( + ARM_DSP_ATTRIBUTE void arm_fir_f16( const arm_fir_instance_f16 * S, const float16_t * pSrc, float16_t * pDst, @@ -107,14 +107,14 @@ extern "C" * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ - void arm_biquad_cascade_df1_f16( + ARM_DSP_ATTRIBUTE void arm_biquad_cascade_df1_f16( const arm_biquad_casd_df1_inst_f16 * S, const float16_t * pSrc, float16_t * pDst, uint32_t blockSize); #if defined(ARM_MATH_MVEF) && !defined(ARM_MATH_AUTOVECTORIZE) - void arm_biquad_cascade_df1_mve_init_f16( + ARM_DSP_ATTRIBUTE void arm_biquad_cascade_df1_mve_init_f16( arm_biquad_casd_df1_inst_f16 * S, uint8_t numStages, const float16_t * pCoeffs, @@ -122,7 +122,7 @@ extern "C" float16_t * pState); #endif - void arm_biquad_cascade_df1_init_f16( + ARM_DSP_ATTRIBUTE void arm_biquad_cascade_df1_init_f16( arm_biquad_casd_df1_inst_f16 * S, uint8_t numStages, const float16_t * pCoeffs, @@ -155,7 +155,7 @@ extern "C" * @param[out] pDst points to the block of output data * @param[in] blockSize number of samples to process. */ - void arm_biquad_cascade_df2T_f16( + ARM_DSP_ATTRIBUTE void arm_biquad_cascade_df2T_f16( const arm_biquad_cascade_df2T_instance_f16 * S, const float16_t * pSrc, float16_t * pDst, @@ -168,7 +168,7 @@ extern "C" * @param[out] pDst points to the block of output data * @param[in] blockSize number of samples to process. */ - void arm_biquad_cascade_stereo_df2T_f16( + ARM_DSP_ATTRIBUTE void arm_biquad_cascade_stereo_df2T_f16( const arm_biquad_cascade_stereo_df2T_instance_f16 * S, const float16_t * pSrc, float16_t * pDst, @@ -181,7 +181,7 @@ extern "C" * @param[in] pCoeffs points to the filter coefficients. * @param[in] pState points to the state buffer. */ - void arm_biquad_cascade_df2T_init_f16( + ARM_DSP_ATTRIBUTE void arm_biquad_cascade_df2T_init_f16( arm_biquad_cascade_df2T_instance_f16 * S, uint8_t numStages, const float16_t * pCoeffs, @@ -194,7 +194,7 @@ extern "C" * @param[in] pCoeffs points to the filter coefficients. * @param[in] pState points to the state buffer. */ - void arm_biquad_cascade_stereo_df2T_init_f16( + ARM_DSP_ATTRIBUTE void arm_biquad_cascade_stereo_df2T_init_f16( arm_biquad_cascade_stereo_df2T_instance_f16 * S, uint8_t numStages, const float16_t * pCoeffs, @@ -208,7 +208,7 @@ extern "C" * @param[in] srcBLen length of the second input sequence. * @param[out] pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. */ - void arm_correlate_f16( + ARM_DSP_ATTRIBUTE void arm_correlate_f16( const float16_t * pSrcA, uint32_t srcALen, const float16_t * pSrcB, @@ -223,7 +223,7 @@ extern "C" @param[out] err prediction error (variance) @param[in] nbCoefs number of autoregressive coefficients */ -void arm_levinson_durbin_f16(const float16_t *phi, +ARM_DSP_ATTRIBUTE void arm_levinson_durbin_f16(const float16_t *phi, float16_t *a, float16_t *err, int nbCoefs); diff --git a/Include/dsp/interpolation_functions.h b/Include/dsp/interpolation_functions.h index c65e359e6..6b27b4c86 100755 --- a/Include/dsp/interpolation_functions.h +++ b/Include/dsp/interpolation_functions.h @@ -24,8 +24,8 @@ */ -#ifndef _INTERPOLATION_FUNCTIONS_H_ -#define _INTERPOLATION_FUNCTIONS_H_ +#ifndef INTERPOLATION_FUNCTIONS_H_ +#define INTERPOLATION_FUNCTIONS_H_ #include "arm_math_types.h" #include "arm_math_memory.h" @@ -128,7 +128,7 @@ extern "C" * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples of output data. */ - void arm_spline_f32( + ARM_DSP_ATTRIBUTE void arm_spline_f32( arm_spline_instance_f32 * S, const float32_t * xq, float32_t * pDst, @@ -144,7 +144,7 @@ extern "C" * @param[in] coeffs coefficients array for b, c, and d * @param[in] tempBuffer buffer array for internal computations */ - void arm_spline_init_f32( + ARM_DSP_ATTRIBUTE void arm_spline_init_f32( arm_spline_instance_f32 * S, arm_spline_type type, const float32_t * x, @@ -161,7 +161,7 @@ extern "C" * @return y processed output sample. * */ - float32_t arm_linear_interp_f32( + ARM_DSP_ATTRIBUTE float32_t arm_linear_interp_f32( const arm_linear_interp_instance_f32 * S, float32_t x); @@ -178,7 +178,7 @@ extern "C" * This function can support maximum of table size 2^12. * */ - q31_t arm_linear_interp_q31( + ARM_DSP_ATTRIBUTE q31_t arm_linear_interp_q31( const q31_t * pYData, q31_t x, uint32_t nValues); @@ -196,7 +196,7 @@ extern "C" * This function can support maximum of table size 2^12. * */ - q15_t arm_linear_interp_q15( + ARM_DSP_ATTRIBUTE q15_t arm_linear_interp_q15( const q15_t * pYData, q31_t x, uint32_t nValues); @@ -213,7 +213,7 @@ extern "C" * Input sample x is in 12.20 format which contains 12 bits for table index and 20 bits for fractional part. * This function can support maximum of table size 2^12. */ -q7_t arm_linear_interp_q7( +ARM_DSP_ATTRIBUTE q7_t arm_linear_interp_q7( const q7_t * pYData, q31_t x, uint32_t nValues); @@ -225,7 +225,7 @@ q7_t arm_linear_interp_q7( * @param[in] Y interpolation coordinate. * @return out interpolated value. */ - float32_t arm_bilinear_interp_f32( + ARM_DSP_ATTRIBUTE float32_t arm_bilinear_interp_f32( const arm_bilinear_interp_instance_f32 * S, float32_t X, float32_t Y); @@ -237,7 +237,7 @@ q7_t arm_linear_interp_q7( * @param[in] Y interpolation coordinate in 12.20 format. * @return out interpolated value. */ - q31_t arm_bilinear_interp_q31( + ARM_DSP_ATTRIBUTE q31_t arm_bilinear_interp_q31( arm_bilinear_interp_instance_q31 * S, q31_t X, q31_t Y); @@ -250,7 +250,7 @@ q7_t arm_linear_interp_q7( * @param[in] Y interpolation coordinate in 12.20 format. * @return out interpolated value. */ - q15_t arm_bilinear_interp_q15( + ARM_DSP_ATTRIBUTE q15_t arm_bilinear_interp_q15( arm_bilinear_interp_instance_q15 * S, q31_t X, q31_t Y); @@ -262,7 +262,7 @@ q7_t arm_linear_interp_q7( * @param[in] Y interpolation coordinate in 12.20 format. * @return out interpolated value. */ - q7_t arm_bilinear_interp_q7( + ARM_DSP_ATTRIBUTE q7_t arm_bilinear_interp_q7( arm_bilinear_interp_instance_q7 * S, q31_t X, q31_t Y); diff --git a/Include/dsp/interpolation_functions_f16.h b/Include/dsp/interpolation_functions_f16.h index 0a35b8c95..854a7714e 100755 --- a/Include/dsp/interpolation_functions_f16.h +++ b/Include/dsp/interpolation_functions_f16.h @@ -24,8 +24,8 @@ */ -#ifndef _INTERPOLATION_FUNCTIONS_F16_H_ -#define _INTERPOLATION_FUNCTIONS_F16_H_ +#ifndef INTERPOLATION_FUNCTIONS_F16_H_ +#define INTERPOLATION_FUNCTIONS_F16_H_ #include "arm_math_types_f16.h" #include "arm_math_memory.h" @@ -72,7 +72,7 @@ typedef struct * @param[in] x input sample to process * @return y processed output sample. */ - float16_t arm_linear_interp_f16( + ARM_DSP_ATTRIBUTE float16_t arm_linear_interp_f16( const arm_linear_interp_instance_f16 * S, float16_t x); @@ -92,7 +92,7 @@ typedef struct * @param[in] Y interpolation coordinate. * @return out interpolated value. */ - float16_t arm_bilinear_interp_f16( + ARM_DSP_ATTRIBUTE float16_t arm_bilinear_interp_f16( const arm_bilinear_interp_instance_f16 * S, float16_t X, float16_t Y); diff --git a/Include/dsp/matrix_functions.h b/Include/dsp/matrix_functions.h index 6ebf720ed..8a507b193 100755 --- a/Include/dsp/matrix_functions.h +++ b/Include/dsp/matrix_functions.h @@ -24,8 +24,8 @@ */ -#ifndef _MATRIX_FUNCTIONS_H_ -#define _MATRIX_FUNCTIONS_H_ +#ifndef MATRIX_FUNCTIONS_H_ +#define MATRIX_FUNCTIONS_H_ #include "arm_math_types.h" #include "arm_math_memory.h" @@ -170,7 +170,7 @@ extern "C" * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_add_f32( +ARM_DSP_ATTRIBUTE arm_status arm_mat_add_f32( const arm_matrix_instance_f32 * pSrcA, const arm_matrix_instance_f32 * pSrcB, arm_matrix_instance_f32 * pDst); @@ -183,7 +183,7 @@ arm_status arm_mat_add_f32( * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_add_q15( +ARM_DSP_ATTRIBUTE arm_status arm_mat_add_q15( const arm_matrix_instance_q15 * pSrcA, const arm_matrix_instance_q15 * pSrcB, arm_matrix_instance_q15 * pDst); @@ -196,7 +196,7 @@ arm_status arm_mat_add_q15( * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_add_q31( +ARM_DSP_ATTRIBUTE arm_status arm_mat_add_q31( const arm_matrix_instance_q31 * pSrcA, const arm_matrix_instance_q31 * pSrcB, arm_matrix_instance_q31 * pDst); @@ -209,7 +209,7 @@ arm_status arm_mat_add_q31( * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_cmplx_mult_f32( +ARM_DSP_ATTRIBUTE arm_status arm_mat_cmplx_mult_f32( const arm_matrix_instance_f32 * pSrcA, const arm_matrix_instance_f32 * pSrcB, arm_matrix_instance_f32 * pDst); @@ -222,7 +222,7 @@ arm_status arm_mat_cmplx_mult_f32( * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_cmplx_mult_q15( +ARM_DSP_ATTRIBUTE arm_status arm_mat_cmplx_mult_q15( const arm_matrix_instance_q15 * pSrcA, const arm_matrix_instance_q15 * pSrcB, arm_matrix_instance_q15 * pDst, @@ -236,7 +236,7 @@ arm_status arm_mat_cmplx_mult_q15( * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_cmplx_mult_q31( +ARM_DSP_ATTRIBUTE arm_status arm_mat_cmplx_mult_q31( const arm_matrix_instance_q31 * pSrcA, const arm_matrix_instance_q31 * pSrcB, arm_matrix_instance_q31 * pDst); @@ -248,7 +248,7 @@ arm_status arm_mat_cmplx_mult_q31( * @return The function returns either ARM_MATH_SIZE_MISMATCH * or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_trans_f32( +ARM_DSP_ATTRIBUTE arm_status arm_mat_trans_f32( const arm_matrix_instance_f32 * pSrc, arm_matrix_instance_f32 * pDst); @@ -259,7 +259,7 @@ arm_status arm_mat_trans_f32( * @return The function returns either ARM_MATH_SIZE_MISMATCH * or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_trans_f64( +ARM_DSP_ATTRIBUTE arm_status arm_mat_trans_f64( const arm_matrix_instance_f64 * pSrc, arm_matrix_instance_f64 * pDst); @@ -270,7 +270,7 @@ arm_status arm_mat_trans_f64( * @return The function returns either ARM_MATH_SIZE_MISMATCH * or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_cmplx_trans_f32( +ARM_DSP_ATTRIBUTE arm_status arm_mat_cmplx_trans_f32( const arm_matrix_instance_f32 * pSrc, arm_matrix_instance_f32 * pDst); @@ -282,7 +282,7 @@ arm_status arm_mat_cmplx_trans_f32( * @return The function returns either ARM_MATH_SIZE_MISMATCH * or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_trans_q15( +ARM_DSP_ATTRIBUTE arm_status arm_mat_trans_q15( const arm_matrix_instance_q15 * pSrc, arm_matrix_instance_q15 * pDst); @@ -293,7 +293,7 @@ arm_status arm_mat_trans_q15( * @return The function returns either ARM_MATH_SIZE_MISMATCH * or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_cmplx_trans_q15( +ARM_DSP_ATTRIBUTE arm_status arm_mat_cmplx_trans_q15( const arm_matrix_instance_q15 * pSrc, arm_matrix_instance_q15 * pDst); @@ -304,7 +304,7 @@ arm_status arm_mat_cmplx_trans_q15( * @return The function returns either ARM_MATH_SIZE_MISMATCH * or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_trans_q7( +ARM_DSP_ATTRIBUTE arm_status arm_mat_trans_q7( const arm_matrix_instance_q7 * pSrc, arm_matrix_instance_q7 * pDst); @@ -315,7 +315,7 @@ arm_status arm_mat_trans_q7( * @return The function returns either ARM_MATH_SIZE_MISMATCH * or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_trans_q31( +ARM_DSP_ATTRIBUTE arm_status arm_mat_trans_q31( const arm_matrix_instance_q31 * pSrc, arm_matrix_instance_q31 * pDst); @@ -326,7 +326,7 @@ arm_status arm_mat_trans_q31( * @return The function returns either ARM_MATH_SIZE_MISMATCH * or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_cmplx_trans_q31( +ARM_DSP_ATTRIBUTE arm_status arm_mat_cmplx_trans_q31( const arm_matrix_instance_q31 * pSrc, arm_matrix_instance_q31 * pDst); @@ -338,7 +338,7 @@ arm_status arm_mat_cmplx_trans_q31( * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_mult_f32( +ARM_DSP_ATTRIBUTE arm_status arm_mat_mult_f32( const arm_matrix_instance_f32 * pSrcA, const arm_matrix_instance_f32 * pSrcB, arm_matrix_instance_f32 * pDst); @@ -351,7 +351,7 @@ arm_status arm_mat_mult_f32( * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_mult_f64( +ARM_DSP_ATTRIBUTE arm_status arm_mat_mult_f64( const arm_matrix_instance_f64 * pSrcA, const arm_matrix_instance_f64 * pSrcB, arm_matrix_instance_f64 * pDst); @@ -362,7 +362,7 @@ arm_status arm_mat_mult_f64( * @param[in] pVec points to vector * @param[out] pDst points to output vector */ -void arm_mat_vec_mult_f32( +ARM_DSP_ATTRIBUTE void arm_mat_vec_mult_f32( const arm_matrix_instance_f32 *pSrcMat, const float32_t *pVec, float32_t *pDst); @@ -376,7 +376,7 @@ void arm_mat_vec_mult_f32( * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_mult_q7( +ARM_DSP_ATTRIBUTE arm_status arm_mat_mult_q7( const arm_matrix_instance_q7 * pSrcA, const arm_matrix_instance_q7 * pSrcB, arm_matrix_instance_q7 * pDst, @@ -388,7 +388,7 @@ arm_status arm_mat_mult_q7( * @param[in] pVec points to vector * @param[out] pDst points to output vector */ -void arm_mat_vec_mult_q7( +ARM_DSP_ATTRIBUTE void arm_mat_vec_mult_q7( const arm_matrix_instance_q7 *pSrcMat, const q7_t *pVec, q7_t *pDst); @@ -402,7 +402,7 @@ void arm_mat_vec_mult_q7( * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_mult_q15( +ARM_DSP_ATTRIBUTE arm_status arm_mat_mult_q15( const arm_matrix_instance_q15 * pSrcA, const arm_matrix_instance_q15 * pSrcB, arm_matrix_instance_q15 * pDst, @@ -414,7 +414,7 @@ arm_status arm_mat_mult_q15( * @param[in] pVec points to vector * @param[out] pDst points to output vector */ -void arm_mat_vec_mult_q15( +ARM_DSP_ATTRIBUTE void arm_mat_vec_mult_q15( const arm_matrix_instance_q15 *pSrcMat, const q15_t *pVec, q15_t *pDst); @@ -428,7 +428,7 @@ void arm_mat_vec_mult_q15( * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_mult_fast_q15( +ARM_DSP_ATTRIBUTE arm_status arm_mat_mult_fast_q15( const arm_matrix_instance_q15 * pSrcA, const arm_matrix_instance_q15 * pSrcB, arm_matrix_instance_q15 * pDst, @@ -442,7 +442,7 @@ arm_status arm_mat_mult_fast_q15( * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_mult_q31( +ARM_DSP_ATTRIBUTE arm_status arm_mat_mult_q31( const arm_matrix_instance_q31 * pSrcA, const arm_matrix_instance_q31 * pSrcB, arm_matrix_instance_q31 * pDst); @@ -456,7 +456,7 @@ arm_status arm_mat_mult_q31( * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_mult_opt_q31( +ARM_DSP_ATTRIBUTE arm_status arm_mat_mult_opt_q31( const arm_matrix_instance_q31 * pSrcA, const arm_matrix_instance_q31 * pSrcB, arm_matrix_instance_q31 * pDst, @@ -468,7 +468,7 @@ arm_status arm_mat_mult_opt_q31( * @param[in] pVec points to vector * @param[out] pDst points to output vector */ -void arm_mat_vec_mult_q31( +ARM_DSP_ATTRIBUTE void arm_mat_vec_mult_q31( const arm_matrix_instance_q31 *pSrcMat, const q31_t *pVec, q31_t *pDst); @@ -481,7 +481,7 @@ void arm_mat_vec_mult_q31( * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_mult_fast_q31( +ARM_DSP_ATTRIBUTE arm_status arm_mat_mult_fast_q31( const arm_matrix_instance_q31 * pSrcA, const arm_matrix_instance_q31 * pSrcB, arm_matrix_instance_q31 * pDst); @@ -494,7 +494,7 @@ arm_status arm_mat_mult_fast_q31( * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_sub_f32( +ARM_DSP_ATTRIBUTE arm_status arm_mat_sub_f32( const arm_matrix_instance_f32 * pSrcA, const arm_matrix_instance_f32 * pSrcB, arm_matrix_instance_f32 * pDst); @@ -507,7 +507,7 @@ arm_status arm_mat_sub_f32( * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_sub_f64( +ARM_DSP_ATTRIBUTE arm_status arm_mat_sub_f64( const arm_matrix_instance_f64 * pSrcA, const arm_matrix_instance_f64 * pSrcB, arm_matrix_instance_f64 * pDst); @@ -520,7 +520,7 @@ arm_status arm_mat_sub_f64( * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_sub_q15( +ARM_DSP_ATTRIBUTE arm_status arm_mat_sub_q15( const arm_matrix_instance_q15 * pSrcA, const arm_matrix_instance_q15 * pSrcB, arm_matrix_instance_q15 * pDst); @@ -533,7 +533,7 @@ arm_status arm_mat_sub_q15( * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_sub_q31( +ARM_DSP_ATTRIBUTE arm_status arm_mat_sub_q31( const arm_matrix_instance_q31 * pSrcA, const arm_matrix_instance_q31 * pSrcB, arm_matrix_instance_q31 * pDst); @@ -546,7 +546,7 @@ arm_status arm_mat_sub_q31( * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_scale_f32( +ARM_DSP_ATTRIBUTE arm_status arm_mat_scale_f32( const arm_matrix_instance_f32 * pSrc, float32_t scale, arm_matrix_instance_f32 * pDst); @@ -560,7 +560,7 @@ arm_status arm_mat_scale_f32( * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_scale_q15( +ARM_DSP_ATTRIBUTE arm_status arm_mat_scale_q15( const arm_matrix_instance_q15 * pSrc, q15_t scaleFract, int32_t shift, @@ -575,7 +575,7 @@ arm_status arm_mat_scale_q15( * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_scale_q31( +ARM_DSP_ATTRIBUTE arm_status arm_mat_scale_q31( const arm_matrix_instance_q31 * pSrc, q31_t scaleFract, int32_t shift, @@ -588,7 +588,7 @@ arm_status arm_mat_scale_q31( * @param[in] nColumns number of columns in the matrix. * @param[in] pData points to the matrix data array. */ -void arm_mat_init_q31( +ARM_DSP_ATTRIBUTE void arm_mat_init_q31( arm_matrix_instance_q31 * S, uint16_t nRows, uint16_t nColumns, @@ -601,7 +601,7 @@ void arm_mat_init_q31( * @param[in] nColumns number of columns in the matrix. * @param[in] pData points to the matrix data array. */ -void arm_mat_init_q15( +ARM_DSP_ATTRIBUTE void arm_mat_init_q15( arm_matrix_instance_q15 * S, uint16_t nRows, uint16_t nColumns, @@ -614,7 +614,7 @@ void arm_mat_init_q15( * @param[in] nColumns number of columns in the matrix. * @param[in] pData points to the matrix data array. */ -void arm_mat_init_f32( +ARM_DSP_ATTRIBUTE void arm_mat_init_f32( arm_matrix_instance_f32 * S, uint16_t nRows, uint16_t nColumns, @@ -627,7 +627,7 @@ void arm_mat_init_f32( * @param[in] nColumns number of columns in the matrix. * @param[in] pData points to the matrix data array. */ -void arm_mat_init_f64( +ARM_DSP_ATTRIBUTE void arm_mat_init_f64( arm_matrix_instance_f64 * S, uint16_t nRows, uint16_t nColumns, @@ -643,7 +643,7 @@ void arm_mat_init_f64( * @return The function returns ARM_MATH_SIZE_MISMATCH, if the dimensions do not match. * If the input matrix is singular (does not have an inverse), then the algorithm terminates and returns error status ARM_MATH_SINGULAR. */ - arm_status arm_mat_inverse_f32( + ARM_DSP_ATTRIBUTE arm_status arm_mat_inverse_f32( const arm_matrix_instance_f32 * src, arm_matrix_instance_f32 * dst); @@ -655,7 +655,7 @@ void arm_mat_init_f64( * @return The function returns ARM_MATH_SIZE_MISMATCH, if the dimensions do not match. * If the input matrix is singular (does not have an inverse), then the algorithm terminates and returns error status ARM_MATH_SINGULAR. */ - arm_status arm_mat_inverse_f64( + ARM_DSP_ATTRIBUTE arm_status arm_mat_inverse_f64( const arm_matrix_instance_f64 * src, arm_matrix_instance_f64 * dst); @@ -668,7 +668,7 @@ void arm_mat_init_f64( * If the matrix is ill conditioned or only semi-definite, then it is better using the LDL^t decomposition. * The decomposition is returning a lower triangular matrix. */ - arm_status arm_mat_cholesky_f64( + ARM_DSP_ATTRIBUTE arm_status arm_mat_cholesky_f64( const arm_matrix_instance_f64 * src, arm_matrix_instance_f64 * dst); @@ -681,7 +681,7 @@ void arm_mat_init_f64( * If the matrix is ill conditioned or only semi-definite, then it is better using the LDL^t decomposition. * The decomposition is returning a lower triangular matrix. */ - arm_status arm_mat_cholesky_f32( + ARM_DSP_ATTRIBUTE arm_status arm_mat_cholesky_f32( const arm_matrix_instance_f32 * src, arm_matrix_instance_f32 * dst); @@ -692,7 +692,7 @@ void arm_mat_init_f64( * @param[out] dst The solution X of UT . X = A * @return The function returns ARM_MATH_SINGULAR, if the system can't be solved. */ - arm_status arm_mat_solve_upper_triangular_f32( + ARM_DSP_ATTRIBUTE arm_status arm_mat_solve_upper_triangular_f32( const arm_matrix_instance_f32 * ut, const arm_matrix_instance_f32 * a, arm_matrix_instance_f32 * dst); @@ -704,7 +704,7 @@ void arm_mat_init_f64( * @param[out] dst The solution X of LT . X = A * @return The function returns ARM_MATH_SINGULAR, if the system can't be solved. */ - arm_status arm_mat_solve_lower_triangular_f32( + ARM_DSP_ATTRIBUTE arm_status arm_mat_solve_lower_triangular_f32( const arm_matrix_instance_f32 * lt, const arm_matrix_instance_f32 * a, arm_matrix_instance_f32 * dst); @@ -717,7 +717,7 @@ void arm_mat_init_f64( * @param[out] dst The solution X of UT . X = A * @return The function returns ARM_MATH_SINGULAR, if the system can't be solved. */ - arm_status arm_mat_solve_upper_triangular_f64( + ARM_DSP_ATTRIBUTE arm_status arm_mat_solve_upper_triangular_f64( const arm_matrix_instance_f64 * ut, const arm_matrix_instance_f64 * a, arm_matrix_instance_f64 * dst); @@ -729,7 +729,7 @@ void arm_mat_init_f64( * @param[out] dst The solution X of LT . X = A * @return The function returns ARM_MATH_SINGULAR, if the system can't be solved. */ - arm_status arm_mat_solve_lower_triangular_f64( + ARM_DSP_ATTRIBUTE arm_status arm_mat_solve_lower_triangular_f64( const arm_matrix_instance_f64 * lt, const arm_matrix_instance_f64 * a, arm_matrix_instance_f64 * dst); @@ -745,7 +745,7 @@ void arm_mat_init_f64( * If the input matrix does not have a decomposition, then the algorithm terminates and returns error status ARM_MATH_DECOMPOSITION_FAILURE. * The decomposition is returning a lower triangular matrix. */ - arm_status arm_mat_ldlt_f32( + ARM_DSP_ATTRIBUTE arm_status arm_mat_ldlt_f32( const arm_matrix_instance_f32 * src, arm_matrix_instance_f32 * l, arm_matrix_instance_f32 * d, @@ -761,7 +761,7 @@ void arm_mat_init_f64( * If the input matrix does not have a decomposition, then the algorithm terminates and returns error status ARM_MATH_DECOMPOSITION_FAILURE. * The decomposition is returning a lower triangular matrix. */ - arm_status arm_mat_ldlt_f64( + ARM_DSP_ATTRIBUTE arm_status arm_mat_ldlt_f64( const arm_matrix_instance_f64 * src, arm_matrix_instance_f64 * l, arm_matrix_instance_f64 * d, @@ -782,7 +782,7 @@ void arm_mat_init_f64( - \ref ARM_MATH_SINGULAR : Input matrix is found to be singular (non-invertible) */ -arm_status arm_mat_qr_f32( +ARM_DSP_ATTRIBUTE arm_status arm_mat_qr_f32( const arm_matrix_instance_f32 * pSrc, const float32_t threshold, arm_matrix_instance_f32 * pOutR, @@ -807,7 +807,7 @@ arm_status arm_mat_qr_f32( - \ref ARM_MATH_SINGULAR : Input matrix is found to be singular (non-invertible) */ -arm_status arm_mat_qr_f64( +ARM_DSP_ATTRIBUTE arm_status arm_mat_qr_f64( const arm_matrix_instance_f64 * pSrc, const float64_t threshold, arm_matrix_instance_f64 * pOutR, @@ -826,7 +826,7 @@ arm_status arm_mat_qr_f64( @return beta return the scaling factor beta */ -float32_t arm_householder_f32( +ARM_DSP_ATTRIBUTE float32_t arm_householder_f32( const float32_t * pSrc, const float32_t threshold, uint32_t blockSize, @@ -842,7 +842,7 @@ float32_t arm_householder_f32( @return beta return the scaling factor beta */ -float64_t arm_householder_f64( +ARM_DSP_ATTRIBUTE float64_t arm_householder_f64( const float64_t * pSrc, const float64_t threshold, uint32_t blockSize, diff --git a/Include/dsp/matrix_functions_f16.h b/Include/dsp/matrix_functions_f16.h index 24689e722..61c0002f3 100755 --- a/Include/dsp/matrix_functions_f16.h +++ b/Include/dsp/matrix_functions_f16.h @@ -24,8 +24,8 @@ */ -#ifndef _MATRIX_FUNCTIONS_F16_H_ -#define _MATRIX_FUNCTIONS_F16_H_ +#ifndef MATRIX_FUNCTIONS_F16_H_ +#define MATRIX_FUNCTIONS_F16_H_ #ifdef __cplusplus extern "C" @@ -61,7 +61,7 @@ extern "C" * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_add_f16( +ARM_DSP_ATTRIBUTE arm_status arm_mat_add_f16( const arm_matrix_instance_f16 * pSrcA, const arm_matrix_instance_f16 * pSrcB, arm_matrix_instance_f16 * pDst); @@ -74,7 +74,7 @@ arm_status arm_mat_add_f16( * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_cmplx_mult_f16( +ARM_DSP_ATTRIBUTE arm_status arm_mat_cmplx_mult_f16( const arm_matrix_instance_f16 * pSrcA, const arm_matrix_instance_f16 * pSrcB, arm_matrix_instance_f16 * pDst); @@ -86,7 +86,7 @@ arm_status arm_mat_cmplx_mult_f16( * @return The function returns either ARM_MATH_SIZE_MISMATCH * or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_trans_f16( +ARM_DSP_ATTRIBUTE arm_status arm_mat_trans_f16( const arm_matrix_instance_f16 * pSrc, arm_matrix_instance_f16 * pDst); @@ -97,7 +97,7 @@ arm_status arm_mat_trans_f16( * @return The function returns either ARM_MATH_SIZE_MISMATCH * or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_cmplx_trans_f16( +ARM_DSP_ATTRIBUTE arm_status arm_mat_cmplx_trans_f16( const arm_matrix_instance_f16 * pSrc, arm_matrix_instance_f16 * pDst); @@ -109,7 +109,7 @@ arm_status arm_mat_cmplx_trans_f16( * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_mult_f16( +ARM_DSP_ATTRIBUTE arm_status arm_mat_mult_f16( const arm_matrix_instance_f16 * pSrcA, const arm_matrix_instance_f16 * pSrcB, arm_matrix_instance_f16 * pDst); @@ -119,7 +119,7 @@ arm_status arm_mat_mult_f16( * @param[in] pVec points to vector * @param[out] pDst points to output vector */ -void arm_mat_vec_mult_f16( +ARM_DSP_ATTRIBUTE void arm_mat_vec_mult_f16( const arm_matrix_instance_f16 *pSrcMat, const float16_t *pVec, float16_t *pDst); @@ -132,7 +132,7 @@ void arm_mat_vec_mult_f16( * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_sub_f16( +ARM_DSP_ATTRIBUTE arm_status arm_mat_sub_f16( const arm_matrix_instance_f16 * pSrcA, const arm_matrix_instance_f16 * pSrcB, arm_matrix_instance_f16 * pDst); @@ -145,7 +145,7 @@ arm_status arm_mat_sub_f16( * @return The function returns either * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. */ -arm_status arm_mat_scale_f16( +ARM_DSP_ATTRIBUTE arm_status arm_mat_scale_f16( const arm_matrix_instance_f16 * pSrc, float16_t scale, arm_matrix_instance_f16 * pDst); @@ -157,7 +157,7 @@ arm_status arm_mat_scale_f16( * @param[in] nColumns number of columns in the matrix. * @param[in] pData points to the matrix data array. */ -void arm_mat_init_f16( +ARM_DSP_ATTRIBUTE void arm_mat_init_f16( arm_matrix_instance_f16 * S, uint16_t nRows, uint16_t nColumns, @@ -171,7 +171,7 @@ void arm_mat_init_f16( * @return The function returns ARM_MATH_SIZE_MISMATCH, if the dimensions do not match. * If the input matrix is singular (does not have an inverse), then the algorithm terminates and returns error status ARM_MATH_SINGULAR. */ - arm_status arm_mat_inverse_f16( + ARM_DSP_ATTRIBUTE arm_status arm_mat_inverse_f16( const arm_matrix_instance_f16 * src, arm_matrix_instance_f16 * dst); @@ -185,7 +185,7 @@ void arm_mat_init_f16( * If the matrix is ill conditioned or only semi-definite, then it is better using the LDL^t decomposition. * The decomposition is returning a lower triangular matrix. */ - arm_status arm_mat_cholesky_f16( + ARM_DSP_ATTRIBUTE arm_status arm_mat_cholesky_f16( const arm_matrix_instance_f16 * src, arm_matrix_instance_f16 * dst); @@ -196,7 +196,7 @@ void arm_mat_init_f16( * @param[out] dst The solution X of UT . X = A * @return The function returns ARM_MATH_SINGULAR, if the system can't be solved. */ - arm_status arm_mat_solve_upper_triangular_f16( + ARM_DSP_ATTRIBUTE arm_status arm_mat_solve_upper_triangular_f16( const arm_matrix_instance_f16 * ut, const arm_matrix_instance_f16 * a, arm_matrix_instance_f16 * dst); @@ -208,7 +208,7 @@ void arm_mat_init_f16( * @param[out] dst The solution X of LT . X = A * @return The function returns ARM_MATH_SINGULAR, if the system can't be solved. */ - arm_status arm_mat_solve_lower_triangular_f16( + ARM_DSP_ATTRIBUTE arm_status arm_mat_solve_lower_triangular_f16( const arm_matrix_instance_f16 * lt, const arm_matrix_instance_f16 * a, arm_matrix_instance_f16 * dst); @@ -228,7 +228,7 @@ void arm_mat_init_f16( - \ref ARM_MATH_SIZE_MISMATCH : Matrix size check failed - \ref ARM_MATH_SINGULAR : Input matrix is found to be singular (non-invertible) */ -arm_status arm_mat_qr_f16( +ARM_DSP_ATTRIBUTE arm_status arm_mat_qr_f16( const arm_matrix_instance_f16 * pSrc, const float16_t threshold, arm_matrix_instance_f16 * pOutR, @@ -246,7 +246,7 @@ arm_status arm_mat_qr_f16( @param[outQ] pOut points to the output vector. @return beta return the scaling factor beta */ -float16_t arm_householder_f16( +ARM_DSP_ATTRIBUTE float16_t arm_householder_f16( const float16_t * pSrc, const float16_t threshold, uint32_t blockSize, diff --git a/Include/dsp/matrix_utils.h b/Include/dsp/matrix_utils.h index 4e1defa8e..79e7f8cf1 100755 --- a/Include/dsp/matrix_utils.h +++ b/Include/dsp/matrix_utils.h @@ -24,8 +24,8 @@ */ -#ifndef _MATRIX_UTILS_H_ -#define _MATRIX_UTILS_H_ +#ifndef MATRIX_UTILS_H_ +#define MATRIX_UTILS_H_ #include "arm_math_types.h" #include "arm_math_memory.h" diff --git a/Include/dsp/none.h b/Include/dsp/none.h index 130386eec..7551ee95e 100755 --- a/Include/dsp/none.h +++ b/Include/dsp/none.h @@ -34,8 +34,8 @@ of intrinsics. */ -#ifndef _NONE_H_ -#define _NONE_H_ +#ifndef NONE_H_ +#define NONE_H_ #include "arm_math_types.h" diff --git a/Include/dsp/quaternion_math_functions.h b/Include/dsp/quaternion_math_functions.h index 2cc4b334d..7db892a91 100755 --- a/Include/dsp/quaternion_math_functions.h +++ b/Include/dsp/quaternion_math_functions.h @@ -25,8 +25,8 @@ */ -#ifndef _QUATERNION_MATH_FUNCTIONS_H_ -#define _QUATERNION_MATH_FUNCTIONS_H_ +#ifndef QUATERNION_MATH_FUNCTIONS_H_ +#define QUATERNION_MATH_FUNCTIONS_H_ #include "arm_math_types.h" #include "arm_math_memory.h" @@ -53,7 +53,7 @@ extern "C" @param[out] pNorms points to the output vector of norms @param[in] nbQuaternions number of quaternions in each vector */ -void arm_quaternion_norm_f32(const float32_t *pInputQuaternions, +ARM_DSP_ATTRIBUTE void arm_quaternion_norm_f32(const float32_t *pInputQuaternions, float32_t *pNorms, uint32_t nbQuaternions); @@ -64,7 +64,7 @@ void arm_quaternion_norm_f32(const float32_t *pInputQuaternions, @param[out] pInverseQuaternions points to the output vector of inverse quaternions @param[in] nbQuaternions number of quaternions in each vector */ -void arm_quaternion_inverse_f32(const float32_t *pInputQuaternions, +ARM_DSP_ATTRIBUTE void arm_quaternion_inverse_f32(const float32_t *pInputQuaternions, float32_t *pInverseQuaternions, uint32_t nbQuaternions); @@ -75,7 +75,7 @@ void arm_quaternion_inverse_f32(const float32_t *pInputQuaternions, @param[out] pConjugateQuaternions points to the output vector of conjugate quaternions @param[in] nbQuaternions number of quaternions in each vector */ -void arm_quaternion_conjugate_f32(const float32_t *inputQuaternions, +ARM_DSP_ATTRIBUTE void arm_quaternion_conjugate_f32(const float32_t *inputQuaternions, float32_t *pConjugateQuaternions, uint32_t nbQuaternions); @@ -86,7 +86,7 @@ void arm_quaternion_conjugate_f32(const float32_t *inputQuaternions, @param[out] pNormalizedQuaternions points to the output vector of normalized quaternions @param[in] nbQuaternions number of quaternions in each vector */ -void arm_quaternion_normalize_f32(const float32_t *inputQuaternions, +ARM_DSP_ATTRIBUTE void arm_quaternion_normalize_f32(const float32_t *inputQuaternions, float32_t *pNormalizedQuaternions, uint32_t nbQuaternions); @@ -97,7 +97,7 @@ void arm_quaternion_normalize_f32(const float32_t *inputQuaternions, @param[in] qb Second quaternion @param[out] r Product of two quaternions */ -void arm_quaternion_product_single_f32(const float32_t *qa, +ARM_DSP_ATTRIBUTE void arm_quaternion_product_single_f32(const float32_t *qa, const float32_t *qb, float32_t *r); @@ -109,7 +109,7 @@ void arm_quaternion_product_single_f32(const float32_t *qa, @param[out] r Elementwise product of quaternions @param[in] nbQuaternions Number of quaternions in the array */ -void arm_quaternion_product_f32(const float32_t *qa, +ARM_DSP_ATTRIBUTE void arm_quaternion_product_f32(const float32_t *qa, const float32_t *qb, float32_t *r, uint32_t nbQuaternions); @@ -130,7 +130,7 @@ void arm_quaternion_product_f32(const float32_t *qa, * * Rotation matrix is saved in row order : R00 R01 R02 R10 R11 R12 R20 R21 R22 */ -void arm_quaternion2rotation_f32(const float32_t *pInputQuaternions, +ARM_DSP_ATTRIBUTE void arm_quaternion2rotation_f32(const float32_t *pInputQuaternions, float32_t *pOutputRotations, uint32_t nbQuaternions); @@ -141,7 +141,7 @@ void arm_quaternion2rotation_f32(const float32_t *pInputQuaternions, * @param[out] pOutputQuaternions points to an array of quaternions * @param[in] nbQuaternions in the array */ -void arm_rotation2quaternion_f32(const float32_t *pInputRotations, +ARM_DSP_ATTRIBUTE void arm_rotation2quaternion_f32(const float32_t *pInputRotations, float32_t *pOutputQuaternions, uint32_t nbQuaternions); diff --git a/Include/dsp/statistics_functions.h b/Include/dsp/statistics_functions.h index 94b28e9f5..c4d77941e 100755 --- a/Include/dsp/statistics_functions.h +++ b/Include/dsp/statistics_functions.h @@ -24,8 +24,8 @@ */ -#ifndef _STATISTICS_FUNCTIONS_H_ -#define _STATISTICS_FUNCTIONS_H_ +#ifndef STATISTICS_FUNCTIONS_H_ +#define STATISTICS_FUNCTIONS_H_ #include "arm_math_types.h" #include "arm_math_memory.h" @@ -71,7 +71,7 @@ extern "C" */ -float32_t arm_logsumexp_f32(const float32_t *in, uint32_t blockSize); +ARM_DSP_ATTRIBUTE float32_t arm_logsumexp_f32(const float32_t *in, uint32_t blockSize); /** * @brief Dot product with log arithmetic @@ -87,7 +87,7 @@ float32_t arm_logsumexp_f32(const float32_t *in, uint32_t blockSize); */ -float32_t arm_logsumexp_dot_prod_f32(const float32_t * pSrcA, +ARM_DSP_ATTRIBUTE float32_t arm_logsumexp_dot_prod_f32(const float32_t * pSrcA, const float32_t * pSrcB, uint32_t blockSize, float32_t *pTmpBuffer); @@ -102,7 +102,7 @@ float32_t arm_logsumexp_dot_prod_f32(const float32_t * pSrcA, */ -float32_t arm_entropy_f32(const float32_t * pSrcA,uint32_t blockSize); +ARM_DSP_ATTRIBUTE float32_t arm_entropy_f32(const float32_t * pSrcA,uint32_t blockSize); /** @@ -115,7 +115,7 @@ float32_t arm_entropy_f32(const float32_t * pSrcA,uint32_t blockSize); */ -float64_t arm_entropy_f64(const float64_t * pSrcA, uint32_t blockSize); +ARM_DSP_ATTRIBUTE float64_t arm_entropy_f64(const float64_t * pSrcA, uint32_t blockSize); /** @@ -127,7 +127,7 @@ float64_t arm_entropy_f64(const float64_t * pSrcA, uint32_t blockSize); * @return Kullback-Leibler Divergence D(A || B) * */ -float32_t arm_kullback_leibler_f32(const float32_t * pSrcA +ARM_DSP_ATTRIBUTE float32_t arm_kullback_leibler_f32(const float32_t * pSrcA ,const float32_t * pSrcB ,uint32_t blockSize); @@ -141,7 +141,7 @@ float32_t arm_kullback_leibler_f32(const float32_t * pSrcA * @return Kullback-Leibler Divergence D(A || B) * */ -float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, +ARM_DSP_ATTRIBUTE float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, const float64_t * pSrcB, uint32_t blockSize); @@ -152,7 +152,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ - void arm_power_q31( + ARM_DSP_ATTRIBUTE void arm_power_q31( const q31_t * pSrc, uint32_t blockSize, q63_t * pResult); @@ -164,7 +164,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ - void arm_power_f32( + ARM_DSP_ATTRIBUTE void arm_power_f32( const float32_t * pSrc, uint32_t blockSize, float32_t * pResult); @@ -176,7 +176,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ - void arm_power_f64( + ARM_DSP_ATTRIBUTE void arm_power_f64( const float64_t * pSrc, uint32_t blockSize, float64_t * pResult); @@ -188,7 +188,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ - void arm_power_q15( + ARM_DSP_ATTRIBUTE void arm_power_q15( const q15_t * pSrc, uint32_t blockSize, q63_t * pResult); @@ -200,7 +200,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ - void arm_power_q7( + ARM_DSP_ATTRIBUTE void arm_power_q7( const q7_t * pSrc, uint32_t blockSize, q31_t * pResult); @@ -212,7 +212,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ - void arm_mean_q7( + ARM_DSP_ATTRIBUTE void arm_mean_q7( const q7_t * pSrc, uint32_t blockSize, q7_t * pResult); @@ -224,7 +224,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ - void arm_mean_q15( + ARM_DSP_ATTRIBUTE void arm_mean_q15( const q15_t * pSrc, uint32_t blockSize, q15_t * pResult); @@ -236,7 +236,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ - void arm_mean_q31( + ARM_DSP_ATTRIBUTE void arm_mean_q31( const q31_t * pSrc, uint32_t blockSize, q31_t * pResult); @@ -248,7 +248,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ - void arm_mean_f32( + ARM_DSP_ATTRIBUTE void arm_mean_f32( const float32_t * pSrc, uint32_t blockSize, float32_t * pResult); @@ -260,7 +260,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ - void arm_mean_f64( + ARM_DSP_ATTRIBUTE void arm_mean_f64( const float64_t * pSrc, uint32_t blockSize, float64_t * pResult); @@ -272,7 +272,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ - void arm_var_f32( + ARM_DSP_ATTRIBUTE void arm_var_f32( const float32_t * pSrc, uint32_t blockSize, float32_t * pResult); @@ -284,7 +284,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ - void arm_var_f64( + ARM_DSP_ATTRIBUTE void arm_var_f64( const float64_t * pSrc, uint32_t blockSize, float64_t * pResult); @@ -296,7 +296,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ - void arm_var_q31( + ARM_DSP_ATTRIBUTE void arm_var_q31( const q31_t * pSrc, uint32_t blockSize, q31_t * pResult); @@ -308,7 +308,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ - void arm_var_q15( + ARM_DSP_ATTRIBUTE void arm_var_q15( const q15_t * pSrc, uint32_t blockSize, q15_t * pResult); @@ -320,7 +320,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ - void arm_rms_f32( + ARM_DSP_ATTRIBUTE void arm_rms_f32( const float32_t * pSrc, uint32_t blockSize, float32_t * pResult); @@ -332,7 +332,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ - void arm_rms_q31( + ARM_DSP_ATTRIBUTE void arm_rms_q31( const q31_t * pSrc, uint32_t blockSize, q31_t * pResult); @@ -344,7 +344,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ - void arm_rms_q15( + ARM_DSP_ATTRIBUTE void arm_rms_q15( const q15_t * pSrc, uint32_t blockSize, q15_t * pResult); @@ -356,7 +356,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ - void arm_std_f32( + ARM_DSP_ATTRIBUTE void arm_std_f32( const float32_t * pSrc, uint32_t blockSize, float32_t * pResult); @@ -368,7 +368,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ - void arm_std_f64( + ARM_DSP_ATTRIBUTE void arm_std_f64( const float64_t * pSrc, uint32_t blockSize, float64_t * pResult); @@ -380,7 +380,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ - void arm_std_q31( + ARM_DSP_ATTRIBUTE void arm_std_q31( const q31_t * pSrc, uint32_t blockSize, q31_t * pResult); @@ -392,7 +392,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ - void arm_std_q15( + ARM_DSP_ATTRIBUTE void arm_std_q15( const q15_t * pSrc, uint32_t blockSize, q15_t * pResult); @@ -406,7 +406,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[out] pResult is output pointer * @param[in] pIndex is the array index of the minimum value in the input buffer. */ - void arm_min_q7( + ARM_DSP_ATTRIBUTE void arm_min_q7( const q7_t * pSrc, uint32_t blockSize, q7_t * pResult, @@ -419,7 +419,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[out] pResult is output pointer * @param[in] pIndex is the array index of the minimum value in the input buffer. */ - void arm_absmin_q7( + ARM_DSP_ATTRIBUTE void arm_absmin_q7( const q7_t * pSrc, uint32_t blockSize, q7_t * pResult, @@ -431,7 +431,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize is the number of samples to process * @param[out] pResult is output pointer */ - void arm_absmin_no_idx_q7( + ARM_DSP_ATTRIBUTE void arm_absmin_no_idx_q7( const q7_t * pSrc, uint32_t blockSize, q7_t * pResult); @@ -444,7 +444,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[out] pResult is output pointer * @param[in] pIndex is the array index of the minimum value in the input buffer. */ - void arm_min_q15( + ARM_DSP_ATTRIBUTE void arm_min_q15( const q15_t * pSrc, uint32_t blockSize, q15_t * pResult, @@ -457,7 +457,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[out] pResult is output pointer * @param[in] pIndex is the array index of the minimum value in the input buffer. */ - void arm_absmin_q15( + ARM_DSP_ATTRIBUTE void arm_absmin_q15( const q15_t * pSrc, uint32_t blockSize, q15_t * pResult, @@ -469,7 +469,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize is the number of samples to process * @param[out] pResult is output pointer */ - void arm_absmin_no_idx_q15( + ARM_DSP_ATTRIBUTE void arm_absmin_no_idx_q15( const q15_t * pSrc, uint32_t blockSize, q15_t * pResult); @@ -482,7 +482,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[out] pResult is output pointer * @param[out] pIndex is the array index of the minimum value in the input buffer. */ - void arm_min_q31( + ARM_DSP_ATTRIBUTE void arm_min_q31( const q31_t * pSrc, uint32_t blockSize, q31_t * pResult, @@ -495,7 +495,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[out] pResult is output pointer * @param[out] pIndex is the array index of the minimum value in the input buffer. */ - void arm_absmin_q31( + ARM_DSP_ATTRIBUTE void arm_absmin_q31( const q31_t * pSrc, uint32_t blockSize, q31_t * pResult, @@ -507,7 +507,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize is the number of samples to process * @param[out] pResult is output pointer */ - void arm_absmin_no_idx_q31( + ARM_DSP_ATTRIBUTE void arm_absmin_no_idx_q31( const q31_t * pSrc, uint32_t blockSize, q31_t * pResult); @@ -520,7 +520,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[out] pResult is output pointer * @param[out] pIndex is the array index of the minimum value in the input buffer. */ - void arm_min_f32( + ARM_DSP_ATTRIBUTE void arm_min_f32( const float32_t * pSrc, uint32_t blockSize, float32_t * pResult, @@ -533,7 +533,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[out] pResult is output pointer * @param[out] pIndex is the array index of the minimum value in the input buffer. */ - void arm_absmin_f32( + ARM_DSP_ATTRIBUTE void arm_absmin_f32( const float32_t * pSrc, uint32_t blockSize, float32_t * pResult, @@ -545,7 +545,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize is the number of samples to process * @param[out] pResult is output pointer */ - void arm_absmin_no_idx_f32( + ARM_DSP_ATTRIBUTE void arm_absmin_no_idx_f32( const float32_t * pSrc, uint32_t blockSize, float32_t * pResult); @@ -558,7 +558,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[out] pResult is output pointer * @param[out] pIndex is the array index of the minimum value in the input buffer. */ - void arm_min_f64( + ARM_DSP_ATTRIBUTE void arm_min_f64( const float64_t * pSrc, uint32_t blockSize, float64_t * pResult, @@ -571,7 +571,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[out] pResult is output pointer * @param[out] pIndex is the array index of the minimum value in the input buffer. */ - void arm_absmin_f64( + ARM_DSP_ATTRIBUTE void arm_absmin_f64( const float64_t * pSrc, uint32_t blockSize, float64_t * pResult, @@ -583,7 +583,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize is the number of samples to process * @param[out] pResult is output pointer */ - void arm_absmin_no_idx_f64( + ARM_DSP_ATTRIBUTE void arm_absmin_no_idx_f64( const float64_t * pSrc, uint32_t blockSize, float64_t * pResult); @@ -596,7 +596,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[out] pResult maximum value returned here * @param[out] pIndex index of maximum value returned here */ - void arm_max_q7( + ARM_DSP_ATTRIBUTE void arm_max_q7( const q7_t * pSrc, uint32_t blockSize, q7_t * pResult, @@ -609,7 +609,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[out] pResult maximum value returned here * @param[out] pIndex index of maximum value returned here */ - void arm_absmax_q7( + ARM_DSP_ATTRIBUTE void arm_absmax_q7( const q7_t * pSrc, uint32_t blockSize, q7_t * pResult, @@ -621,7 +621,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize length of the input vector * @param[out] pResult maximum value returned here */ - void arm_absmax_no_idx_q7( + ARM_DSP_ATTRIBUTE void arm_absmax_no_idx_q7( const q7_t * pSrc, uint32_t blockSize, q7_t * pResult); @@ -634,7 +634,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[out] pResult maximum value returned here * @param[out] pIndex index of maximum value returned here */ - void arm_max_q15( + ARM_DSP_ATTRIBUTE void arm_max_q15( const q15_t * pSrc, uint32_t blockSize, q15_t * pResult, @@ -647,7 +647,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[out] pResult maximum value returned here * @param[out] pIndex index of maximum value returned here */ - void arm_absmax_q15( + ARM_DSP_ATTRIBUTE void arm_absmax_q15( const q15_t * pSrc, uint32_t blockSize, q15_t * pResult, @@ -659,7 +659,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize length of the input vector * @param[out] pResult maximum value returned here */ - void arm_absmax_no_idx_q15( + ARM_DSP_ATTRIBUTE void arm_absmax_no_idx_q15( const q15_t * pSrc, uint32_t blockSize, q15_t * pResult); @@ -671,7 +671,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[out] pResult maximum value returned here * @param[out] pIndex index of maximum value returned here */ - void arm_max_q31( + ARM_DSP_ATTRIBUTE void arm_max_q31( const q31_t * pSrc, uint32_t blockSize, q31_t * pResult, @@ -684,7 +684,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[out] pResult maximum value returned here * @param[out] pIndex index of maximum value returned here */ - void arm_absmax_q31( + ARM_DSP_ATTRIBUTE void arm_absmax_q31( const q31_t * pSrc, uint32_t blockSize, q31_t * pResult, @@ -696,7 +696,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize length of the input vector * @param[out] pResult maximum value returned here */ - void arm_absmax_no_idx_q31( + ARM_DSP_ATTRIBUTE void arm_absmax_no_idx_q31( const q31_t * pSrc, uint32_t blockSize, q31_t * pResult); @@ -708,7 +708,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[out] pResult maximum value returned here * @param[out] pIndex index of maximum value returned here */ - void arm_max_f32( + ARM_DSP_ATTRIBUTE void arm_max_f32( const float32_t * pSrc, uint32_t blockSize, float32_t * pResult, @@ -721,7 +721,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[out] pResult maximum value returned here * @param[out] pIndex index of maximum value returned here */ - void arm_absmax_f32( + ARM_DSP_ATTRIBUTE void arm_absmax_f32( const float32_t * pSrc, uint32_t blockSize, float32_t * pResult, @@ -733,7 +733,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize length of the input vector * @param[out] pResult maximum value returned here */ - void arm_absmax_no_idx_f32( + ARM_DSP_ATTRIBUTE void arm_absmax_no_idx_f32( const float32_t * pSrc, uint32_t blockSize, float32_t * pResult); @@ -745,7 +745,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[out] pResult maximum value returned here * @param[out] pIndex index of maximum value returned here */ - void arm_max_f64( + ARM_DSP_ATTRIBUTE void arm_max_f64( const float64_t * pSrc, uint32_t blockSize, float64_t * pResult, @@ -758,7 +758,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[out] pResult maximum value returned here * @param[out] pIndex index of maximum value returned here */ - void arm_absmax_f64( + ARM_DSP_ATTRIBUTE void arm_absmax_f64( const float64_t * pSrc, uint32_t blockSize, float64_t * pResult, @@ -770,7 +770,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, * @param[in] blockSize length of the input vector * @param[out] pResult maximum value returned here */ - void arm_absmax_no_idx_f64( + ARM_DSP_ATTRIBUTE void arm_absmax_no_idx_f64( const float64_t * pSrc, uint32_t blockSize, float64_t * pResult); @@ -781,7 +781,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, @param[in] blockSize number of samples in input vector @param[out] pResult maximum value returned here */ - void arm_max_no_idx_f32( + ARM_DSP_ATTRIBUTE void arm_max_no_idx_f32( const float32_t *pSrc, uint32_t blockSize, float32_t *pResult); @@ -792,7 +792,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, @param[in] blockSize number of samples in input vector @param[out] pResult minimum value returned here */ - void arm_min_no_idx_f32( + ARM_DSP_ATTRIBUTE void arm_min_no_idx_f32( const float32_t *pSrc, uint32_t blockSize, float32_t *pResult); @@ -803,7 +803,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, @param[in] blockSize number of samples in input vector @param[out] pResult maximum value returned here */ - void arm_max_no_idx_f64( + ARM_DSP_ATTRIBUTE void arm_max_no_idx_f64( const float64_t *pSrc, uint32_t blockSize, float64_t *pResult); @@ -814,7 +814,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, @param[in] blockSize number of samples in input vector @param[out] pResult maximum value returned here */ - void arm_max_no_idx_q31( + ARM_DSP_ATTRIBUTE void arm_max_no_idx_q31( const q31_t *pSrc, uint32_t blockSize, q31_t *pResult); @@ -825,7 +825,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, @param[in] blockSize number of samples in input vector @param[out] pResult maximum value returned here */ - void arm_max_no_idx_q15( + ARM_DSP_ATTRIBUTE void arm_max_no_idx_q15( const q15_t *pSrc, uint32_t blockSize, q15_t *pResult); @@ -836,7 +836,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, @param[in] blockSize number of samples in input vector @param[out] pResult maximum value returned here */ - void arm_max_no_idx_q7( + ARM_DSP_ATTRIBUTE void arm_max_no_idx_q7( const q7_t *pSrc, uint32_t blockSize, q7_t *pResult); @@ -847,7 +847,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, @param[in] blockSize number of samples in input vector @param[out] pResult minimum value returned here */ - void arm_min_no_idx_f64( + ARM_DSP_ATTRIBUTE void arm_min_no_idx_f64( const float64_t *pSrc, uint32_t blockSize, float64_t *pResult); @@ -858,7 +858,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, @param[in] blockSize number of samples in input vector @param[out] pResult minimum value returned here */ - void arm_min_no_idx_q31( + ARM_DSP_ATTRIBUTE void arm_min_no_idx_q31( const q31_t *pSrc, uint32_t blockSize, q31_t *pResult); @@ -869,7 +869,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, @param[in] blockSize number of samples in input vector @param[out] pResult minimum value returned here */ - void arm_min_no_idx_q15( + ARM_DSP_ATTRIBUTE void arm_min_no_idx_q15( const q15_t *pSrc, uint32_t blockSize, q15_t *pResult); @@ -880,7 +880,7 @@ float64_t arm_kullback_leibler_f64(const float64_t * pSrcA, @param[in] blockSize number of samples in input vector @param[out] pResult minimum value returned here */ -void arm_min_no_idx_q7( +ARM_DSP_ATTRIBUTE void arm_min_no_idx_q7( const q7_t *pSrc, uint32_t blockSize, q7_t *pResult); @@ -893,7 +893,7 @@ void arm_min_no_idx_q7( @param[out] pResult mean square error */ -void arm_mse_q7( +ARM_DSP_ATTRIBUTE void arm_mse_q7( const q7_t * pSrcA, const q7_t * pSrcB, uint32_t blockSize, @@ -907,7 +907,7 @@ void arm_mse_q7( @param[out] pResult mean square error */ -void arm_mse_q15( +ARM_DSP_ATTRIBUTE void arm_mse_q15( const q15_t * pSrcA, const q15_t * pSrcB, uint32_t blockSize, @@ -921,7 +921,7 @@ void arm_mse_q15( @param[out] pResult mean square error */ -void arm_mse_q31( +ARM_DSP_ATTRIBUTE void arm_mse_q31( const q31_t * pSrcA, const q31_t * pSrcB, uint32_t blockSize, @@ -935,7 +935,7 @@ void arm_mse_q31( @param[out] pResult mean square error */ -void arm_mse_f32( +ARM_DSP_ATTRIBUTE void arm_mse_f32( const float32_t * pSrcA, const float32_t * pSrcB, uint32_t blockSize, @@ -949,7 +949,7 @@ void arm_mse_f32( @param[out] pResult mean square error */ -void arm_mse_f64( +ARM_DSP_ATTRIBUTE void arm_mse_f64( const float64_t * pSrcA, const float64_t * pSrcB, uint32_t blockSize, @@ -963,7 +963,7 @@ void arm_mse_f64( * @param[out] pResult is output value. */ -void arm_accumulate_f32( +ARM_DSP_ATTRIBUTE void arm_accumulate_f32( const float32_t * pSrc, uint32_t blockSize, float32_t * pResult); @@ -975,7 +975,7 @@ const float32_t * pSrc, * @param[out] pResult is output value. */ -void arm_accumulate_f64( +ARM_DSP_ATTRIBUTE void arm_accumulate_f64( const float64_t * pSrc, uint32_t blockSize, float64_t * pResult); diff --git a/Include/dsp/statistics_functions_f16.h b/Include/dsp/statistics_functions_f16.h index defab1472..9d1ed2e66 100755 --- a/Include/dsp/statistics_functions_f16.h +++ b/Include/dsp/statistics_functions_f16.h @@ -24,8 +24,8 @@ */ -#ifndef _STATISTICS_FUNCTIONS_F16_H_ -#define _STATISTICS_FUNCTIONS_F16_H_ +#ifndef STATISTICS_FUNCTIONS_F16_H_ +#define STATISTICS_FUNCTIONS_F16_H_ #include "arm_math_types_f16.h" #include "arm_math_memory.h" @@ -49,7 +49,7 @@ extern "C" * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ - void arm_power_f16( + ARM_DSP_ATTRIBUTE void arm_power_f16( const float16_t * pSrc, uint32_t blockSize, float16_t * pResult); @@ -60,7 +60,7 @@ extern "C" * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ - void arm_mean_f16( + ARM_DSP_ATTRIBUTE void arm_mean_f16( const float16_t * pSrc, uint32_t blockSize, float16_t * pResult); @@ -71,7 +71,7 @@ extern "C" * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ - void arm_var_f16( + ARM_DSP_ATTRIBUTE void arm_var_f16( const float16_t * pSrc, uint32_t blockSize, float16_t * pResult); @@ -82,7 +82,7 @@ extern "C" * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ - void arm_rms_f16( + ARM_DSP_ATTRIBUTE void arm_rms_f16( const float16_t * pSrc, uint32_t blockSize, float16_t * pResult); @@ -93,7 +93,7 @@ extern "C" * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ - void arm_std_f16( + ARM_DSP_ATTRIBUTE void arm_std_f16( const float16_t * pSrc, uint32_t blockSize, float16_t * pResult); @@ -105,7 +105,7 @@ extern "C" * @param[out] pResult is output pointer * @param[out] pIndex is the array index of the minimum value in the input buffer. */ - void arm_min_f16( + ARM_DSP_ATTRIBUTE void arm_min_f16( const float16_t * pSrc, uint32_t blockSize, float16_t * pResult, @@ -118,7 +118,7 @@ extern "C" * @param[out] pResult is output pointer * @param[out] pIndex is the array index of the minimum value in the input buffer. */ - void arm_absmin_f16( + ARM_DSP_ATTRIBUTE void arm_absmin_f16( const float16_t * pSrc, uint32_t blockSize, float16_t * pResult, @@ -131,7 +131,7 @@ extern "C" * @param[out] pResult maximum value returned here * @param[out] pIndex index of maximum value returned here */ - void arm_max_f16( + ARM_DSP_ATTRIBUTE void arm_max_f16( const float16_t * pSrc, uint32_t blockSize, float16_t * pResult, @@ -144,7 +144,7 @@ extern "C" * @param[out] pResult maximum value returned here * @param[out] pIndex index of maximum value returned here */ - void arm_absmax_f16( + ARM_DSP_ATTRIBUTE void arm_absmax_f16( const float16_t * pSrc, uint32_t blockSize, float16_t * pResult, @@ -156,7 +156,7 @@ extern "C" * @param[in] blockSize is the number of samples to process * @param[out] pResult is output pointer */ - void arm_absmin_no_idx_f16( + ARM_DSP_ATTRIBUTE void arm_absmin_no_idx_f16( const float16_t * pSrc, uint32_t blockSize, float16_t * pResult); @@ -167,7 +167,7 @@ extern "C" * @param[in] blockSize length of the input vector * @param[out] pResult maximum value returned here */ - void arm_absmax_no_idx_f16( + ARM_DSP_ATTRIBUTE void arm_absmax_no_idx_f16( const float16_t * pSrc, uint32_t blockSize, float16_t * pResult); @@ -180,10 +180,10 @@ extern "C" * @param[in] blockSize Number of samples in the input array. * @return Entropy -Sum(p ln p) */ -float16_t arm_entropy_f16(const float16_t * pSrcA,uint32_t blockSize); +ARM_DSP_ATTRIBUTE float16_t arm_entropy_f16(const float16_t * pSrcA,uint32_t blockSize); -float16_t arm_logsumexp_f16(const float16_t *in, uint32_t blockSize); +ARM_DSP_ATTRIBUTE float16_t arm_logsumexp_f16(const float16_t *in, uint32_t blockSize); /** @@ -197,7 +197,7 @@ float16_t arm_logsumexp_f16(const float16_t *in, uint32_t blockSize); * @param[in] pTmpBuffer temporary buffer of length blockSize * @return The log of the dot product . */ -float16_t arm_logsumexp_dot_prod_f16(const float16_t * pSrcA, +ARM_DSP_ATTRIBUTE float16_t arm_logsumexp_dot_prod_f16(const float16_t * pSrcA, const float16_t * pSrcB, uint32_t blockSize, float16_t *pTmpBuffer); @@ -211,7 +211,7 @@ float16_t arm_logsumexp_dot_prod_f16(const float16_t * pSrcA, * @param[in] blockSize Number of samples in the input array. * @return Kullback-Leibler Divergence D(A || B) */ -float16_t arm_kullback_leibler_f16(const float16_t * pSrcA +ARM_DSP_ATTRIBUTE float16_t arm_kullback_leibler_f16(const float16_t * pSrcA ,const float16_t * pSrcB ,uint32_t blockSize); @@ -222,7 +222,7 @@ float16_t arm_kullback_leibler_f16(const float16_t * pSrcA @param[in] blockSize number of samples in input vector @param[out] pResult maximum value returned here */ - void arm_max_no_idx_f16( + ARM_DSP_ATTRIBUTE void arm_max_no_idx_f16( const float16_t *pSrc, uint32_t blockSize, float16_t *pResult); @@ -234,7 +234,7 @@ float16_t arm_kullback_leibler_f16(const float16_t * pSrcA @param[in] blockSize number of samples in input vector @param[out] pResult minimum value returned here */ - void arm_min_no_idx_f16( + ARM_DSP_ATTRIBUTE void arm_min_no_idx_f16( const float16_t *pSrc, uint32_t blockSize, float16_t *pResult); @@ -247,7 +247,7 @@ float16_t arm_kullback_leibler_f16(const float16_t * pSrcA @param[in] blockSize number of samples in input vector @param[out] pResult mean square error */ -void arm_mse_f16( +ARM_DSP_ATTRIBUTE void arm_mse_f16( const float16_t * pSrcA, const float16_t * pSrcB, uint32_t blockSize, @@ -260,7 +260,7 @@ void arm_mse_f16( * @param[in] blockSize is the number of samples to process * @param[out] pResult is output value. */ - void arm_accumulate_f16( + ARM_DSP_ATTRIBUTE void arm_accumulate_f16( const float16_t * pSrc, uint32_t blockSize, float16_t * pResult); diff --git a/Include/dsp/support_functions.h b/Include/dsp/support_functions.h index 979126949..a2e151b65 100755 --- a/Include/dsp/support_functions.h +++ b/Include/dsp/support_functions.h @@ -24,8 +24,8 @@ */ -#ifndef _SUPPORT_FUNCTIONS_H_ -#define _SUPPORT_FUNCTIONS_H_ +#ifndef SUPPORT_FUNCTIONS_H_ +#define SUPPORT_FUNCTIONS_H_ #include "arm_math_types.h" #include "arm_math_memory.h" @@ -49,7 +49,7 @@ extern "C" * @param[out] pDst points to the floating-point output vector * @param[in] blockSize length of the input vector */ - void arm_f64_to_float( + ARM_DSP_ATTRIBUTE void arm_f64_to_float( const float64_t * pSrc, float32_t * pDst, uint32_t blockSize); @@ -60,7 +60,7 @@ extern "C" * @param[out] pDst points to the Q31 output vector * @param[in] blockSize length of the input vector */ - void arm_f64_to_q31( + ARM_DSP_ATTRIBUTE void arm_f64_to_q31( const float64_t * pSrc, q31_t * pDst, uint32_t blockSize); @@ -71,7 +71,7 @@ extern "C" * @param[out] pDst points to the Q15 output vector * @param[in] blockSize length of the input vector */ - void arm_f64_to_q15( + ARM_DSP_ATTRIBUTE void arm_f64_to_q15( const float64_t * pSrc, q15_t * pDst, uint32_t blockSize); @@ -82,7 +82,7 @@ extern "C" * @param[out] pDst points to the Q7 output vector * @param[in] blockSize length of the input vector */ - void arm_f64_to_q7( + ARM_DSP_ATTRIBUTE void arm_f64_to_q7( const float64_t * pSrc, q7_t * pDst, uint32_t blockSize); @@ -95,7 +95,7 @@ extern "C" * @param[out] pDst points to the 64 bit floating-point output vector * @param[in] blockSize length of the input vector */ - void arm_float_to_f64( + ARM_DSP_ATTRIBUTE void arm_float_to_f64( const float32_t * pSrc, float64_t * pDst, uint32_t blockSize); @@ -106,7 +106,7 @@ extern "C" * @param[out] pDst points to the Q31 output vector * @param[in] blockSize length of the input vector */ - void arm_float_to_q31( + ARM_DSP_ATTRIBUTE void arm_float_to_q31( const float32_t * pSrc, q31_t * pDst, uint32_t blockSize); @@ -118,7 +118,7 @@ extern "C" * @param[out] pDst points to the Q15 output vector * @param[in] blockSize length of the input vector */ - void arm_float_to_q15( + ARM_DSP_ATTRIBUTE void arm_float_to_q15( const float32_t * pSrc, q15_t * pDst, uint32_t blockSize); @@ -130,7 +130,7 @@ extern "C" * @param[out] pDst points to the Q7 output vector * @param[in] blockSize length of the input vector */ - void arm_float_to_q7( + ARM_DSP_ATTRIBUTE void arm_float_to_q7( const float32_t * pSrc, q7_t * pDst, uint32_t blockSize); @@ -141,7 +141,7 @@ extern "C" * @param[out] pDst is output pointer * @param[in] blockSize is the number of samples to process */ -void arm_q31_to_f64( +ARM_DSP_ATTRIBUTE void arm_q31_to_f64( const q31_t * pSrc, float64_t * pDst, uint32_t blockSize); @@ -152,7 +152,7 @@ const q31_t * pSrc, * @param[out] pDst is output pointer * @param[in] blockSize is the number of samples to process */ - void arm_q31_to_float( + ARM_DSP_ATTRIBUTE void arm_q31_to_float( const q31_t * pSrc, float32_t * pDst, uint32_t blockSize); @@ -164,7 +164,7 @@ const q31_t * pSrc, * @param[out] pDst is output pointer * @param[in] blockSize is the number of samples to process */ - void arm_q31_to_q15( + ARM_DSP_ATTRIBUTE void arm_q31_to_q15( const q31_t * pSrc, q15_t * pDst, uint32_t blockSize); @@ -176,7 +176,7 @@ const q31_t * pSrc, * @param[out] pDst is output pointer * @param[in] blockSize is the number of samples to process */ - void arm_q31_to_q7( + ARM_DSP_ATTRIBUTE void arm_q31_to_q7( const q31_t * pSrc, q7_t * pDst, uint32_t blockSize); @@ -187,7 +187,7 @@ const q31_t * pSrc, * @param[out] pDst is output pointer * @param[in] blockSize is the number of samples to process */ -void arm_q15_to_f64( +ARM_DSP_ATTRIBUTE void arm_q15_to_f64( const q15_t * pSrc, float64_t * pDst, uint32_t blockSize); @@ -198,7 +198,7 @@ const q15_t * pSrc, * @param[out] pDst is output pointer * @param[in] blockSize is the number of samples to process */ - void arm_q15_to_float( + ARM_DSP_ATTRIBUTE void arm_q15_to_float( const q15_t * pSrc, float32_t * pDst, uint32_t blockSize); @@ -210,7 +210,7 @@ const q15_t * pSrc, * @param[out] pDst is output pointer * @param[in] blockSize is the number of samples to process */ - void arm_q15_to_q31( + ARM_DSP_ATTRIBUTE void arm_q15_to_q31( const q15_t * pSrc, q31_t * pDst, uint32_t blockSize); @@ -222,7 +222,7 @@ const q15_t * pSrc, * @param[out] pDst is output pointer * @param[in] blockSize is the number of samples to process */ - void arm_q15_to_q7( + ARM_DSP_ATTRIBUTE void arm_q15_to_q7( const q15_t * pSrc, q7_t * pDst, uint32_t blockSize); @@ -233,7 +233,7 @@ const q15_t * pSrc, * @param[out] pDst is output pointer * @param[in] blockSize is the number of samples to process */ -void arm_q7_to_f64( +ARM_DSP_ATTRIBUTE void arm_q7_to_f64( const q7_t * pSrc, float64_t * pDst, uint32_t blockSize); @@ -244,7 +244,7 @@ const q7_t * pSrc, * @param[out] pDst is output pointer * @param[in] blockSize is the number of samples to process */ - void arm_q7_to_float( + ARM_DSP_ATTRIBUTE void arm_q7_to_float( const q7_t * pSrc, float32_t * pDst, uint32_t blockSize); @@ -256,7 +256,7 @@ const q7_t * pSrc, * @param[out] pDst output pointer * @param[in] blockSize number of samples to process */ - void arm_q7_to_q31( + ARM_DSP_ATTRIBUTE void arm_q7_to_q31( const q7_t * pSrc, q31_t * pDst, uint32_t blockSize); @@ -268,7 +268,7 @@ const q7_t * pSrc, * @param[out] pDst output pointer * @param[in] blockSize number of samples to process */ - void arm_q7_to_q15( + ARM_DSP_ATTRIBUTE void arm_q7_to_q15( const q7_t * pSrc, q15_t * pDst, uint32_t blockSize); @@ -322,7 +322,7 @@ const q7_t * pSrc, * @param[out] pDst points to the block of output data. * @param[in] blockSize number of samples to process. */ - void arm_sort_f32( + ARM_DSP_ATTRIBUTE void arm_sort_f32( const arm_sort_instance_f32 * S, float32_t * pSrc, float32_t * pDst, @@ -333,7 +333,7 @@ const q7_t * pSrc, * @param[in] alg Selected algorithm. * @param[in] dir Sorting order. */ - void arm_sort_init_f32( + ARM_DSP_ATTRIBUTE void arm_sort_init_f32( arm_sort_instance_f32 * S, arm_sort_alg alg, arm_sort_dir dir); @@ -353,7 +353,7 @@ const q7_t * pSrc, * @param[out] pDst points to the block of output data * @param[in] blockSize number of samples to process. */ - void arm_merge_sort_f32( + ARM_DSP_ATTRIBUTE void arm_merge_sort_f32( const arm_merge_sort_instance_f32 * S, float32_t *pSrc, float32_t *pDst, @@ -364,7 +364,7 @@ const q7_t * pSrc, * @param[in] dir Sorting order. * @param[in] buffer Working buffer. */ - void arm_merge_sort_init_f32( + ARM_DSP_ATTRIBUTE void arm_merge_sort_init_f32( arm_merge_sort_instance_f32 * S, arm_sort_dir dir, float32_t * buffer); @@ -377,7 +377,7 @@ const q7_t * pSrc, * @param[out] pDst output pointer * @param[in] blockSize number of samples to process */ - void arm_copy_f32( + ARM_DSP_ATTRIBUTE void arm_copy_f32( const float32_t * pSrc, float32_t * pDst, uint32_t blockSize); @@ -390,7 +390,7 @@ const q7_t * pSrc, * @param[out] pDst output pointer * @param[in] blockSize number of samples to process */ - void arm_copy_f64( + ARM_DSP_ATTRIBUTE void arm_copy_f64( const float64_t * pSrc, float64_t * pDst, uint32_t blockSize); @@ -403,7 +403,7 @@ const q7_t * pSrc, * @param[out] pDst output pointer * @param[in] blockSize number of samples to process */ - void arm_copy_q7( + ARM_DSP_ATTRIBUTE void arm_copy_q7( const q7_t * pSrc, q7_t * pDst, uint32_t blockSize); @@ -415,7 +415,7 @@ const q7_t * pSrc, * @param[out] pDst output pointer * @param[in] blockSize number of samples to process */ - void arm_copy_q15( + ARM_DSP_ATTRIBUTE void arm_copy_q15( const q15_t * pSrc, q15_t * pDst, uint32_t blockSize); @@ -427,7 +427,7 @@ const q7_t * pSrc, * @param[out] pDst output pointer * @param[in] blockSize number of samples to process */ - void arm_copy_q31( + ARM_DSP_ATTRIBUTE void arm_copy_q31( const q31_t * pSrc, q31_t * pDst, uint32_t blockSize); @@ -439,7 +439,7 @@ const q7_t * pSrc, * @param[out] pDst output pointer * @param[in] blockSize number of samples to process */ - void arm_fill_f32( + ARM_DSP_ATTRIBUTE void arm_fill_f32( float32_t value, float32_t * pDst, uint32_t blockSize); @@ -451,7 +451,7 @@ const q7_t * pSrc, * @param[out] pDst output pointer * @param[in] blockSize number of samples to process */ - void arm_fill_f64( + ARM_DSP_ATTRIBUTE void arm_fill_f64( float64_t value, float64_t * pDst, uint32_t blockSize); @@ -463,7 +463,7 @@ const q7_t * pSrc, * @param[out] pDst output pointer * @param[in] blockSize number of samples to process */ - void arm_fill_q7( + ARM_DSP_ATTRIBUTE void arm_fill_q7( q7_t value, q7_t * pDst, uint32_t blockSize); @@ -475,7 +475,7 @@ const q7_t * pSrc, * @param[out] pDst output pointer * @param[in] blockSize number of samples to process */ - void arm_fill_q15( + ARM_DSP_ATTRIBUTE void arm_fill_q15( q15_t value, q15_t * pDst, uint32_t blockSize); @@ -487,7 +487,7 @@ const q7_t * pSrc, * @param[out] pDst output pointer * @param[in] blockSize number of samples to process */ - void arm_fill_q31( + ARM_DSP_ATTRIBUTE void arm_fill_q31( q31_t value, q31_t * pDst, uint32_t blockSize); @@ -508,7 +508,7 @@ const q7_t * pSrc, * @return Weighted sum * */ -float32_t arm_weighted_sum_f32(const float32_t *in +ARM_DSP_ATTRIBUTE float32_t arm_weighted_sum_f32(const float32_t *in , const float32_t *weigths , uint32_t blockSize); @@ -524,7 +524,7 @@ float32_t arm_weighted_sum_f32(const float32_t *in * @param[in] vecDim Dimension of space (vector dimension) * */ -void arm_barycenter_f32(const float32_t *in +ARM_DSP_ATTRIBUTE void arm_barycenter_f32(const float32_t *in , const float32_t *weights , float32_t *out , uint32_t nbVectors diff --git a/Include/dsp/support_functions_f16.h b/Include/dsp/support_functions_f16.h index d676e85dc..fd0172c4b 100755 --- a/Include/dsp/support_functions_f16.h +++ b/Include/dsp/support_functions_f16.h @@ -24,8 +24,8 @@ */ -#ifndef _SUPPORT_FUNCTIONS_F16_H_ -#define _SUPPORT_FUNCTIONS_F16_H_ +#ifndef SUPPORT_FUNCTIONS_F16_H_ +#define SUPPORT_FUNCTIONS_F16_H_ #include "arm_math_types_f16.h" #include "arm_math_memory.h" @@ -46,7 +46,7 @@ extern "C" * @param[out] pDst output pointer * @param[in] blockSize number of samples to process */ -void arm_copy_f16(const float16_t * pSrc, float16_t * pDst, uint32_t blockSize); +ARM_DSP_ATTRIBUTE void arm_copy_f16(const float16_t * pSrc, float16_t * pDst, uint32_t blockSize); /** @@ -55,7 +55,7 @@ void arm_copy_f16(const float16_t * pSrc, float16_t * pDst, uint32_t blockSize); * @param[out] pDst output pointer * @param[in] blockSize number of samples to process */ -void arm_fill_f16(float16_t value, float16_t * pDst, uint32_t blockSize); +ARM_DSP_ATTRIBUTE void arm_fill_f16(float16_t value, float16_t * pDst, uint32_t blockSize); /** @@ -64,7 +64,7 @@ void arm_fill_f16(float16_t value, float16_t * pDst, uint32_t blockSize); * @param[out] pDst points to the q15 output vector * @param[in] blockSize length of the input vector */ -void arm_f16_to_q15(const float16_t * pSrc, q15_t * pDst, uint32_t blockSize); +ARM_DSP_ATTRIBUTE void arm_f16_to_q15(const float16_t * pSrc, q15_t * pDst, uint32_t blockSize); /** @@ -73,7 +73,7 @@ void arm_f16_to_q15(const float16_t * pSrc, q15_t * pDst, uint32_t blockSize); * @param[out] pDst points to the f16 output vector * @param[in] blockSize length of the input vector */ -void arm_q15_to_f16(const q15_t * pSrc, float16_t * pDst, uint32_t blockSize); +ARM_DSP_ATTRIBUTE void arm_q15_to_f16(const q15_t * pSrc, float16_t * pDst, uint32_t blockSize); /** @@ -82,7 +82,7 @@ void arm_q15_to_f16(const q15_t * pSrc, float16_t * pDst, uint32_t blockSize); * @param[out] pDst points to the f16 output vector * @param[in] blockSize length of the input vector */ -void arm_f64_to_f16(const float64_t * pSrc, float16_t * pDst, uint32_t blockSize); +ARM_DSP_ATTRIBUTE void arm_f64_to_f16(const float64_t * pSrc, float16_t * pDst, uint32_t blockSize); /** @@ -91,7 +91,7 @@ void arm_f64_to_f16(const float64_t * pSrc, float16_t * pDst, uint32_t blockSize * @param[out] pDst points to the f64 output vector * @param[in] blockSize length of the input vector */ -void arm_f16_to_f64(const float16_t * pSrc, float64_t * pDst, uint32_t blockSize); +ARM_DSP_ATTRIBUTE void arm_f16_to_f64(const float16_t * pSrc, float64_t * pDst, uint32_t blockSize); /** @@ -100,7 +100,7 @@ void arm_f16_to_f64(const float16_t * pSrc, float64_t * pDst, uint32_t blockSize * @param[out] pDst points to the f16 output vector * @param[in] blockSize length of the input vector */ -void arm_float_to_f16(const float32_t * pSrc, float16_t * pDst, uint32_t blockSize); +ARM_DSP_ATTRIBUTE void arm_float_to_f16(const float32_t * pSrc, float16_t * pDst, uint32_t blockSize); /** @@ -109,7 +109,7 @@ void arm_float_to_f16(const float32_t * pSrc, float16_t * pDst, uint32_t blockSi * @param[out] pDst points to the f32 output vector * @param[in] blockSize length of the input vector */ -void arm_f16_to_float(const float16_t * pSrc, float32_t * pDst, uint32_t blockSize); +ARM_DSP_ATTRIBUTE void arm_f16_to_float(const float16_t * pSrc, float32_t * pDst, uint32_t blockSize); /** @@ -119,7 +119,7 @@ void arm_f16_to_float(const float16_t * pSrc, float32_t * pDst, uint32_t blockSi * @param[in] blockSize Number of samples in the input array. * @return Weighted sum */ -float16_t arm_weighted_sum_f16(const float16_t *in +ARM_DSP_ATTRIBUTE float16_t arm_weighted_sum_f16(const float16_t *in , const float16_t *weigths , uint32_t blockSize); @@ -132,7 +132,7 @@ float16_t arm_weighted_sum_f16(const float16_t *in * @param[in] nbVectors Number of vectors * @param[in] vecDim Dimension of space (vector dimension) */ -void arm_barycenter_f16(const float16_t *in +ARM_DSP_ATTRIBUTE void arm_barycenter_f16(const float16_t *in , const float16_t *weights , float16_t *out , uint32_t nbVectors diff --git a/Include/dsp/svm_defines.h b/Include/dsp/svm_defines.h index f93e9530d..185a8a902 100755 --- a/Include/dsp/svm_defines.h +++ b/Include/dsp/svm_defines.h @@ -25,8 +25,8 @@ */ -#ifndef _SVM_DEFINES_H_ -#define _SVM_DEFINES_H_ +#ifndef SVM_DEFINES_H_ +#define SVM_DEFINES_H_ /** * @brief Struct for specifying SVM Kernel diff --git a/Include/dsp/svm_functions.h b/Include/dsp/svm_functions.h index 3cf70ac94..0f26cafb2 100755 --- a/Include/dsp/svm_functions.h +++ b/Include/dsp/svm_functions.h @@ -24,8 +24,8 @@ */ -#ifndef _SVM_FUNCTIONS_H_ -#define _SVM_FUNCTIONS_H_ +#ifndef SVM_FUNCTIONS_H_ +#define SVM_FUNCTIONS_H_ #include "arm_math_types.h" #include "arm_math_memory.h" @@ -146,7 +146,7 @@ typedef struct * @param[in] supportVectors Array of support vectors * @param[in] classes Array of 2 classes ID */ -void arm_svm_linear_init_f32(arm_svm_linear_instance_f32 *S, +ARM_DSP_ATTRIBUTE void arm_svm_linear_init_f32(arm_svm_linear_instance_f32 *S, uint32_t nbOfSupportVectors, uint32_t vectorDimension, float32_t intercept, @@ -161,7 +161,7 @@ void arm_svm_linear_init_f32(arm_svm_linear_instance_f32 *S, * @param[in] in Pointer to input vector * @param[out] pResult Decision value */ -void arm_svm_linear_predict_f32(const arm_svm_linear_instance_f32 *S, +ARM_DSP_ATTRIBUTE void arm_svm_linear_predict_f32(const arm_svm_linear_instance_f32 *S, const float32_t * in, int32_t * pResult); @@ -179,7 +179,7 @@ void arm_svm_linear_predict_f32(const arm_svm_linear_instance_f32 *S, * @param[in] coef0 coeff0 (scikit-learn terminology) * @param[in] gamma gamma (scikit-learn terminology) */ -void arm_svm_polynomial_init_f32(arm_svm_polynomial_instance_f32 *S, +ARM_DSP_ATTRIBUTE void arm_svm_polynomial_init_f32(arm_svm_polynomial_instance_f32 *S, uint32_t nbOfSupportVectors, uint32_t vectorDimension, float32_t intercept, @@ -198,7 +198,7 @@ void arm_svm_polynomial_init_f32(arm_svm_polynomial_instance_f32 *S, * @param[in] in Pointer to input vector * @param[out] pResult Decision value */ -void arm_svm_polynomial_predict_f32(const arm_svm_polynomial_instance_f32 *S, +ARM_DSP_ATTRIBUTE void arm_svm_polynomial_predict_f32(const arm_svm_polynomial_instance_f32 *S, const float32_t * in, int32_t * pResult); @@ -214,7 +214,7 @@ void arm_svm_polynomial_predict_f32(const arm_svm_polynomial_instance_f32 *S, * @param[in] classes Array of 2 classes ID * @param[in] gamma gamma (scikit-learn terminology) */ -void arm_svm_rbf_init_f32(arm_svm_rbf_instance_f32 *S, +ARM_DSP_ATTRIBUTE void arm_svm_rbf_init_f32(arm_svm_rbf_instance_f32 *S, uint32_t nbOfSupportVectors, uint32_t vectorDimension, float32_t intercept, @@ -231,7 +231,7 @@ void arm_svm_rbf_init_f32(arm_svm_rbf_instance_f32 *S, * @param[in] in Pointer to input vector * @param[out] pResult decision value */ -void arm_svm_rbf_predict_f32(const arm_svm_rbf_instance_f32 *S, +ARM_DSP_ATTRIBUTE void arm_svm_rbf_predict_f32(const arm_svm_rbf_instance_f32 *S, const float32_t * in, int32_t * pResult); @@ -248,7 +248,7 @@ void arm_svm_rbf_predict_f32(const arm_svm_rbf_instance_f32 *S, * @param[in] coef0 coeff0 (scikit-learn terminology) * @param[in] gamma gamma (scikit-learn terminology) */ -void arm_svm_sigmoid_init_f32(arm_svm_sigmoid_instance_f32 *S, +ARM_DSP_ATTRIBUTE void arm_svm_sigmoid_init_f32(arm_svm_sigmoid_instance_f32 *S, uint32_t nbOfSupportVectors, uint32_t vectorDimension, float32_t intercept, @@ -266,7 +266,7 @@ void arm_svm_sigmoid_init_f32(arm_svm_sigmoid_instance_f32 *S, * @param[in] in Pointer to input vector * @param[out] pResult Decision value */ -void arm_svm_sigmoid_predict_f32(const arm_svm_sigmoid_instance_f32 *S, +ARM_DSP_ATTRIBUTE void arm_svm_sigmoid_predict_f32(const arm_svm_sigmoid_instance_f32 *S, const float32_t * in, int32_t * pResult); diff --git a/Include/dsp/svm_functions_f16.h b/Include/dsp/svm_functions_f16.h index c240f9bd5..e48871fc0 100755 --- a/Include/dsp/svm_functions_f16.h +++ b/Include/dsp/svm_functions_f16.h @@ -24,8 +24,8 @@ */ -#ifndef _SVM_FUNCTIONS_F16_H_ -#define _SVM_FUNCTIONS_F16_H_ +#ifndef SVM_FUNCTIONS_F16_H_ +#define SVM_FUNCTIONS_F16_H_ #include "arm_math_types_f16.h" #include "arm_math_memory.h" @@ -132,7 +132,7 @@ typedef struct * @param[in] supportVectors Array of support vectors * @param[in] classes Array of 2 classes ID */ -void arm_svm_linear_init_f16(arm_svm_linear_instance_f16 *S, +ARM_DSP_ATTRIBUTE void arm_svm_linear_init_f16(arm_svm_linear_instance_f16 *S, uint32_t nbOfSupportVectors, uint32_t vectorDimension, float16_t intercept, @@ -146,7 +146,7 @@ void arm_svm_linear_init_f16(arm_svm_linear_instance_f16 *S, * @param[in] in Pointer to input vector * @param[out] pResult Decision value */ -void arm_svm_linear_predict_f16(const arm_svm_linear_instance_f16 *S, +ARM_DSP_ATTRIBUTE void arm_svm_linear_predict_f16(const arm_svm_linear_instance_f16 *S, const float16_t * in, int32_t * pResult); @@ -164,7 +164,7 @@ void arm_svm_linear_predict_f16(const arm_svm_linear_instance_f16 *S, * @param[in] coef0 coeff0 (scikit-learn terminology) * @param[in] gamma gamma (scikit-learn terminology) */ -void arm_svm_polynomial_init_f16(arm_svm_polynomial_instance_f16 *S, +ARM_DSP_ATTRIBUTE void arm_svm_polynomial_init_f16(arm_svm_polynomial_instance_f16 *S, uint32_t nbOfSupportVectors, uint32_t vectorDimension, float16_t intercept, @@ -183,7 +183,7 @@ void arm_svm_polynomial_init_f16(arm_svm_polynomial_instance_f16 *S, * @param[in] in Pointer to input vector * @param[out] pResult Decision value */ -void arm_svm_polynomial_predict_f16(const arm_svm_polynomial_instance_f16 *S, +ARM_DSP_ATTRIBUTE void arm_svm_polynomial_predict_f16(const arm_svm_polynomial_instance_f16 *S, const float16_t * in, int32_t * pResult); @@ -199,7 +199,7 @@ void arm_svm_polynomial_predict_f16(const arm_svm_polynomial_instance_f16 *S, * @param[in] classes Array of 2 classes ID * @param[in] gamma gamma (scikit-learn terminology) */ -void arm_svm_rbf_init_f16(arm_svm_rbf_instance_f16 *S, +ARM_DSP_ATTRIBUTE void arm_svm_rbf_init_f16(arm_svm_rbf_instance_f16 *S, uint32_t nbOfSupportVectors, uint32_t vectorDimension, float16_t intercept, @@ -216,7 +216,7 @@ void arm_svm_rbf_init_f16(arm_svm_rbf_instance_f16 *S, * @param[in] in Pointer to input vector * @param[out] pResult decision value */ -void arm_svm_rbf_predict_f16(const arm_svm_rbf_instance_f16 *S, +ARM_DSP_ATTRIBUTE void arm_svm_rbf_predict_f16(const arm_svm_rbf_instance_f16 *S, const float16_t * in, int32_t * pResult); @@ -233,7 +233,7 @@ void arm_svm_rbf_predict_f16(const arm_svm_rbf_instance_f16 *S, * @param[in] coef0 coeff0 (scikit-learn terminology) * @param[in] gamma gamma (scikit-learn terminology) */ -void arm_svm_sigmoid_init_f16(arm_svm_sigmoid_instance_f16 *S, +ARM_DSP_ATTRIBUTE void arm_svm_sigmoid_init_f16(arm_svm_sigmoid_instance_f16 *S, uint32_t nbOfSupportVectors, uint32_t vectorDimension, float16_t intercept, @@ -251,7 +251,7 @@ void arm_svm_sigmoid_init_f16(arm_svm_sigmoid_instance_f16 *S, * @param[in] in Pointer to input vector * @param[out] pResult Decision value */ -void arm_svm_sigmoid_predict_f16(const arm_svm_sigmoid_instance_f16 *S, +ARM_DSP_ATTRIBUTE void arm_svm_sigmoid_predict_f16(const arm_svm_sigmoid_instance_f16 *S, const float16_t * in, int32_t * pResult); diff --git a/Include/dsp/transform_functions.h b/Include/dsp/transform_functions.h index a43c15740..598f9f497 100755 --- a/Include/dsp/transform_functions.h +++ b/Include/dsp/transform_functions.h @@ -24,8 +24,8 @@ */ -#ifndef _TRANSFORM_FUNCTIONS_H_ -#define _TRANSFORM_FUNCTIONS_H_ +#ifndef TRANSFORM_FUNCTIONS_H_ +#define TRANSFORM_FUNCTIONS_H_ #include "arm_math_types.h" #include "arm_math_memory.h" @@ -62,14 +62,14 @@ extern "C" } arm_cfft_radix2_instance_q15; /* Deprecated */ - arm_status arm_cfft_radix2_init_q15( + ARM_DSP_ATTRIBUTE arm_status arm_cfft_radix2_init_q15( arm_cfft_radix2_instance_q15 * S, uint16_t fftLen, uint8_t ifftFlag, uint8_t bitReverseFlag); /* Deprecated */ - void arm_cfft_radix2_q15( + ARM_DSP_ATTRIBUTE void arm_cfft_radix2_q15( const arm_cfft_radix2_instance_q15 * S, q15_t * pSrc); @@ -89,14 +89,14 @@ extern "C" } arm_cfft_radix4_instance_q15; /* Deprecated */ - arm_status arm_cfft_radix4_init_q15( + ARM_DSP_ATTRIBUTE arm_status arm_cfft_radix4_init_q15( arm_cfft_radix4_instance_q15 * S, uint16_t fftLen, uint8_t ifftFlag, uint8_t bitReverseFlag); /* Deprecated */ - void arm_cfft_radix4_q15( + ARM_DSP_ATTRIBUTE void arm_cfft_radix4_q15( const arm_cfft_radix4_instance_q15 * S, q15_t * pSrc); @@ -115,14 +115,14 @@ extern "C" } arm_cfft_radix2_instance_q31; /* Deprecated */ - arm_status arm_cfft_radix2_init_q31( + ARM_DSP_ATTRIBUTE arm_status arm_cfft_radix2_init_q31( arm_cfft_radix2_instance_q31 * S, uint16_t fftLen, uint8_t ifftFlag, uint8_t bitReverseFlag); /* Deprecated */ - void arm_cfft_radix2_q31( + ARM_DSP_ATTRIBUTE void arm_cfft_radix2_q31( const arm_cfft_radix2_instance_q31 * S, q31_t * pSrc); @@ -141,12 +141,12 @@ extern "C" } arm_cfft_radix4_instance_q31; /* Deprecated */ - void arm_cfft_radix4_q31( + ARM_DSP_ATTRIBUTE void arm_cfft_radix4_q31( const arm_cfft_radix4_instance_q31 * S, q31_t * pSrc); /* Deprecated */ - arm_status arm_cfft_radix4_init_q31( + ARM_DSP_ATTRIBUTE arm_status arm_cfft_radix4_init_q31( arm_cfft_radix4_instance_q31 * S, uint16_t fftLen, uint8_t ifftFlag, @@ -169,14 +169,14 @@ extern "C" /* Deprecated */ - arm_status arm_cfft_radix2_init_f32( + ARM_DSP_ATTRIBUTE arm_status arm_cfft_radix2_init_f32( arm_cfft_radix2_instance_f32 * S, uint16_t fftLen, uint8_t ifftFlag, uint8_t bitReverseFlag); /* Deprecated */ - void arm_cfft_radix2_f32( + ARM_DSP_ATTRIBUTE void arm_cfft_radix2_f32( const arm_cfft_radix2_instance_f32 * S, float32_t * pSrc); @@ -198,14 +198,14 @@ extern "C" /* Deprecated */ - arm_status arm_cfft_radix4_init_f32( + ARM_DSP_ATTRIBUTE arm_status arm_cfft_radix4_init_f32( arm_cfft_radix4_instance_f32 * S, uint16_t fftLen, uint8_t ifftFlag, uint8_t bitReverseFlag); /* Deprecated */ - void arm_cfft_radix4_f32( + ARM_DSP_ATTRIBUTE void arm_cfft_radix4_f32( const arm_cfft_radix4_instance_f32 * S, float32_t * pSrc); @@ -228,21 +228,21 @@ extern "C" #endif } arm_cfft_instance_q15; -arm_status arm_cfft_init_4096_q15(arm_cfft_instance_q15 * S); -arm_status arm_cfft_init_2048_q15(arm_cfft_instance_q15 * S); -arm_status arm_cfft_init_1024_q15(arm_cfft_instance_q15 * S); -arm_status arm_cfft_init_512_q15(arm_cfft_instance_q15 * S); -arm_status arm_cfft_init_256_q15(arm_cfft_instance_q15 * S); -arm_status arm_cfft_init_128_q15(arm_cfft_instance_q15 * S); -arm_status arm_cfft_init_64_q15(arm_cfft_instance_q15 * S); -arm_status arm_cfft_init_32_q15(arm_cfft_instance_q15 * S); -arm_status arm_cfft_init_16_q15(arm_cfft_instance_q15 * S); - -arm_status arm_cfft_init_q15( +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_4096_q15(arm_cfft_instance_q15 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_2048_q15(arm_cfft_instance_q15 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_1024_q15(arm_cfft_instance_q15 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_512_q15(arm_cfft_instance_q15 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_256_q15(arm_cfft_instance_q15 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_128_q15(arm_cfft_instance_q15 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_64_q15(arm_cfft_instance_q15 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_32_q15(arm_cfft_instance_q15 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_16_q15(arm_cfft_instance_q15 * S); + +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_q15( arm_cfft_instance_q15 * S, uint16_t fftLen); -void arm_cfft_q15( +ARM_DSP_ATTRIBUTE void arm_cfft_q15( const arm_cfft_instance_q15 * S, q15_t * p1, uint8_t ifftFlag, @@ -267,21 +267,21 @@ void arm_cfft_q15( #endif } arm_cfft_instance_q31; -arm_status arm_cfft_init_4096_q31(arm_cfft_instance_q31 * S); -arm_status arm_cfft_init_2048_q31(arm_cfft_instance_q31 * S); -arm_status arm_cfft_init_1024_q31(arm_cfft_instance_q31 * S); -arm_status arm_cfft_init_512_q31(arm_cfft_instance_q31 * S); -arm_status arm_cfft_init_256_q31(arm_cfft_instance_q31 * S); -arm_status arm_cfft_init_128_q31(arm_cfft_instance_q31 * S); -arm_status arm_cfft_init_64_q31(arm_cfft_instance_q31 * S); -arm_status arm_cfft_init_32_q31(arm_cfft_instance_q31 * S); -arm_status arm_cfft_init_16_q31(arm_cfft_instance_q31 * S); - -arm_status arm_cfft_init_q31( +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_4096_q31(arm_cfft_instance_q31 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_2048_q31(arm_cfft_instance_q31 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_1024_q31(arm_cfft_instance_q31 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_512_q31(arm_cfft_instance_q31 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_256_q31(arm_cfft_instance_q31 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_128_q31(arm_cfft_instance_q31 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_64_q31(arm_cfft_instance_q31 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_32_q31(arm_cfft_instance_q31 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_16_q31(arm_cfft_instance_q31 * S); + +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_q31( arm_cfft_instance_q31 * S, uint16_t fftLen); -void arm_cfft_q31( +ARM_DSP_ATTRIBUTE void arm_cfft_q31( const arm_cfft_instance_q31 * S, q31_t * p1, uint8_t ifftFlag, @@ -307,21 +307,21 @@ void arm_cfft_q31( } arm_cfft_instance_f32; -arm_status arm_cfft_init_4096_f32(arm_cfft_instance_f32 * S); -arm_status arm_cfft_init_2048_f32(arm_cfft_instance_f32 * S); -arm_status arm_cfft_init_1024_f32(arm_cfft_instance_f32 * S); -arm_status arm_cfft_init_512_f32(arm_cfft_instance_f32 * S); -arm_status arm_cfft_init_256_f32(arm_cfft_instance_f32 * S); -arm_status arm_cfft_init_128_f32(arm_cfft_instance_f32 * S); -arm_status arm_cfft_init_64_f32(arm_cfft_instance_f32 * S); -arm_status arm_cfft_init_32_f32(arm_cfft_instance_f32 * S); -arm_status arm_cfft_init_16_f32(arm_cfft_instance_f32 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_4096_f32(arm_cfft_instance_f32 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_2048_f32(arm_cfft_instance_f32 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_1024_f32(arm_cfft_instance_f32 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_512_f32(arm_cfft_instance_f32 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_256_f32(arm_cfft_instance_f32 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_128_f32(arm_cfft_instance_f32 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_64_f32(arm_cfft_instance_f32 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_32_f32(arm_cfft_instance_f32 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_16_f32(arm_cfft_instance_f32 * S); - arm_status arm_cfft_init_f32( + ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_f32( arm_cfft_instance_f32 * S, uint16_t fftLen); - void arm_cfft_f32( + ARM_DSP_ATTRIBUTE void arm_cfft_f32( const arm_cfft_instance_f32 * S, float32_t * p1, uint8_t ifftFlag, @@ -339,21 +339,21 @@ arm_status arm_cfft_init_16_f32(arm_cfft_instance_f32 * S); uint16_t bitRevLength; /**< bit reversal table length. */ } arm_cfft_instance_f64; -arm_status arm_cfft_init_4096_f64(arm_cfft_instance_f64 * S); -arm_status arm_cfft_init_2048_f64(arm_cfft_instance_f64 * S); -arm_status arm_cfft_init_1024_f64(arm_cfft_instance_f64 * S); -arm_status arm_cfft_init_512_f64(arm_cfft_instance_f64 * S); -arm_status arm_cfft_init_256_f64(arm_cfft_instance_f64 * S); -arm_status arm_cfft_init_128_f64(arm_cfft_instance_f64 * S); -arm_status arm_cfft_init_64_f64(arm_cfft_instance_f64 * S); -arm_status arm_cfft_init_32_f64(arm_cfft_instance_f64 * S); -arm_status arm_cfft_init_16_f64(arm_cfft_instance_f64 * S); - - arm_status arm_cfft_init_f64( +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_4096_f64(arm_cfft_instance_f64 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_2048_f64(arm_cfft_instance_f64 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_1024_f64(arm_cfft_instance_f64 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_512_f64(arm_cfft_instance_f64 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_256_f64(arm_cfft_instance_f64 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_128_f64(arm_cfft_instance_f64 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_64_f64(arm_cfft_instance_f64 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_32_f64(arm_cfft_instance_f64 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_16_f64(arm_cfft_instance_f64 * S); + + ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_f64( arm_cfft_instance_f64 * S, uint16_t fftLen); - void arm_cfft_f64( + ARM_DSP_ATTRIBUTE void arm_cfft_f64( const arm_cfft_instance_f64 * S, float64_t * p1, uint8_t ifftFlag, @@ -377,58 +377,58 @@ arm_status arm_cfft_init_16_f64(arm_cfft_instance_f64 * S); #endif } arm_rfft_instance_q15; -arm_status arm_rfft_init_32_q15( +ARM_DSP_ATTRIBUTE arm_status arm_rfft_init_32_q15( arm_rfft_instance_q15 * S, uint32_t ifftFlagR, uint32_t bitReverseFlag); -arm_status arm_rfft_init_64_q15( +ARM_DSP_ATTRIBUTE arm_status arm_rfft_init_64_q15( arm_rfft_instance_q15 * S, uint32_t ifftFlagR, uint32_t bitReverseFlag); -arm_status arm_rfft_init_128_q15( +ARM_DSP_ATTRIBUTE arm_status arm_rfft_init_128_q15( arm_rfft_instance_q15 * S, uint32_t ifftFlagR, uint32_t bitReverseFlag); -arm_status arm_rfft_init_256_q15( +ARM_DSP_ATTRIBUTE arm_status arm_rfft_init_256_q15( arm_rfft_instance_q15 * S, uint32_t ifftFlagR, uint32_t bitReverseFlag); -arm_status arm_rfft_init_512_q15( +ARM_DSP_ATTRIBUTE arm_status arm_rfft_init_512_q15( arm_rfft_instance_q15 * S, uint32_t ifftFlagR, uint32_t bitReverseFlag); -arm_status arm_rfft_init_1024_q15( +ARM_DSP_ATTRIBUTE arm_status arm_rfft_init_1024_q15( arm_rfft_instance_q15 * S, uint32_t ifftFlagR, uint32_t bitReverseFlag); -arm_status arm_rfft_init_2048_q15( +ARM_DSP_ATTRIBUTE arm_status arm_rfft_init_2048_q15( arm_rfft_instance_q15 * S, uint32_t ifftFlagR, uint32_t bitReverseFlag); -arm_status arm_rfft_init_4096_q15( +ARM_DSP_ATTRIBUTE arm_status arm_rfft_init_4096_q15( arm_rfft_instance_q15 * S, uint32_t ifftFlagR, uint32_t bitReverseFlag); -arm_status arm_rfft_init_8192_q15( +ARM_DSP_ATTRIBUTE arm_status arm_rfft_init_8192_q15( arm_rfft_instance_q15 * S, uint32_t ifftFlagR, uint32_t bitReverseFlag); - arm_status arm_rfft_init_q15( + ARM_DSP_ATTRIBUTE arm_status arm_rfft_init_q15( arm_rfft_instance_q15 * S, uint32_t fftLenReal, uint32_t ifftFlagR, uint32_t bitReverseFlag); - void arm_rfft_q15( + ARM_DSP_ATTRIBUTE void arm_rfft_q15( const arm_rfft_instance_q15 * S, q15_t * pSrc, q15_t * pDst); @@ -451,58 +451,58 @@ arm_status arm_rfft_init_8192_q15( #endif } arm_rfft_instance_q31; - arm_status arm_rfft_init_32_q31( + ARM_DSP_ATTRIBUTE arm_status arm_rfft_init_32_q31( arm_rfft_instance_q31 * S, uint32_t ifftFlagR, uint32_t bitReverseFlag); - arm_status arm_rfft_init_64_q31( + ARM_DSP_ATTRIBUTE arm_status arm_rfft_init_64_q31( arm_rfft_instance_q31 * S, uint32_t ifftFlagR, uint32_t bitReverseFlag); - arm_status arm_rfft_init_128_q31( + ARM_DSP_ATTRIBUTE arm_status arm_rfft_init_128_q31( arm_rfft_instance_q31 * S, uint32_t ifftFlagR, uint32_t bitReverseFlag); - arm_status arm_rfft_init_256_q31( + ARM_DSP_ATTRIBUTE arm_status arm_rfft_init_256_q31( arm_rfft_instance_q31 * S, uint32_t ifftFlagR, uint32_t bitReverseFlag); - arm_status arm_rfft_init_512_q31( + ARM_DSP_ATTRIBUTE arm_status arm_rfft_init_512_q31( arm_rfft_instance_q31 * S, uint32_t ifftFlagR, uint32_t bitReverseFlag); - arm_status arm_rfft_init_1024_q31( + ARM_DSP_ATTRIBUTE arm_status arm_rfft_init_1024_q31( arm_rfft_instance_q31 * S, uint32_t ifftFlagR, uint32_t bitReverseFlag); - arm_status arm_rfft_init_2048_q31( + ARM_DSP_ATTRIBUTE arm_status arm_rfft_init_2048_q31( arm_rfft_instance_q31 * S, uint32_t ifftFlagR, uint32_t bitReverseFlag); - arm_status arm_rfft_init_4096_q31( + ARM_DSP_ATTRIBUTE arm_status arm_rfft_init_4096_q31( arm_rfft_instance_q31 * S, uint32_t ifftFlagR, uint32_t bitReverseFlag); - arm_status arm_rfft_init_8192_q31( + ARM_DSP_ATTRIBUTE arm_status arm_rfft_init_8192_q31( arm_rfft_instance_q31 * S, uint32_t ifftFlagR, uint32_t bitReverseFlag); - arm_status arm_rfft_init_q31( + ARM_DSP_ATTRIBUTE arm_status arm_rfft_init_q31( arm_rfft_instance_q31 * S, uint32_t fftLenReal, uint32_t ifftFlagR, uint32_t bitReverseFlag); - void arm_rfft_q31( + ARM_DSP_ATTRIBUTE void arm_rfft_q31( const arm_rfft_instance_q31 * S, q31_t * pSrc, q31_t * pDst); @@ -522,14 +522,14 @@ arm_status arm_rfft_init_8192_q15( arm_cfft_radix4_instance_f32 *pCfft; /**< points to the complex FFT instance. */ } arm_rfft_instance_f32; - arm_status arm_rfft_init_f32( + ARM_DSP_ATTRIBUTE arm_status arm_rfft_init_f32( arm_rfft_instance_f32 * S, arm_cfft_radix4_instance_f32 * S_CFFT, uint32_t fftLenReal, uint32_t ifftFlagR, uint32_t bitReverseFlag); - void arm_rfft_f32( + ARM_DSP_ATTRIBUTE void arm_rfft_f32( const arm_rfft_instance_f32 * S, float32_t * pSrc, float32_t * pDst); @@ -544,21 +544,21 @@ typedef struct const float64_t * pTwiddleRFFT; /**< Twiddle factors real stage */ } arm_rfft_fast_instance_f64 ; -arm_status arm_rfft_fast_init_32_f64( arm_rfft_fast_instance_f64 * S ); -arm_status arm_rfft_fast_init_64_f64( arm_rfft_fast_instance_f64 * S ); -arm_status arm_rfft_fast_init_128_f64( arm_rfft_fast_instance_f64 * S ); -arm_status arm_rfft_fast_init_256_f64( arm_rfft_fast_instance_f64 * S ); -arm_status arm_rfft_fast_init_512_f64( arm_rfft_fast_instance_f64 * S ); -arm_status arm_rfft_fast_init_1024_f64( arm_rfft_fast_instance_f64 * S ); -arm_status arm_rfft_fast_init_2048_f64( arm_rfft_fast_instance_f64 * S ); -arm_status arm_rfft_fast_init_4096_f64( arm_rfft_fast_instance_f64 * S ); +ARM_DSP_ATTRIBUTE arm_status arm_rfft_fast_init_32_f64( arm_rfft_fast_instance_f64 * S ); +ARM_DSP_ATTRIBUTE arm_status arm_rfft_fast_init_64_f64( arm_rfft_fast_instance_f64 * S ); +ARM_DSP_ATTRIBUTE arm_status arm_rfft_fast_init_128_f64( arm_rfft_fast_instance_f64 * S ); +ARM_DSP_ATTRIBUTE arm_status arm_rfft_fast_init_256_f64( arm_rfft_fast_instance_f64 * S ); +ARM_DSP_ATTRIBUTE arm_status arm_rfft_fast_init_512_f64( arm_rfft_fast_instance_f64 * S ); +ARM_DSP_ATTRIBUTE arm_status arm_rfft_fast_init_1024_f64( arm_rfft_fast_instance_f64 * S ); +ARM_DSP_ATTRIBUTE arm_status arm_rfft_fast_init_2048_f64( arm_rfft_fast_instance_f64 * S ); +ARM_DSP_ATTRIBUTE arm_status arm_rfft_fast_init_4096_f64( arm_rfft_fast_instance_f64 * S ); -arm_status arm_rfft_fast_init_f64 ( +ARM_DSP_ATTRIBUTE arm_status arm_rfft_fast_init_f64 ( arm_rfft_fast_instance_f64 * S, uint16_t fftLen); -void arm_rfft_fast_f64( +ARM_DSP_ATTRIBUTE void arm_rfft_fast_f64( arm_rfft_fast_instance_f64 * S, float64_t * p, float64_t * pOut, uint8_t ifftFlag); @@ -574,21 +574,21 @@ typedef struct const float32_t * pTwiddleRFFT; /**< Twiddle factors real stage */ } arm_rfft_fast_instance_f32 ; -arm_status arm_rfft_fast_init_32_f32( arm_rfft_fast_instance_f32 * S ); -arm_status arm_rfft_fast_init_64_f32( arm_rfft_fast_instance_f32 * S ); -arm_status arm_rfft_fast_init_128_f32( arm_rfft_fast_instance_f32 * S ); -arm_status arm_rfft_fast_init_256_f32( arm_rfft_fast_instance_f32 * S ); -arm_status arm_rfft_fast_init_512_f32( arm_rfft_fast_instance_f32 * S ); -arm_status arm_rfft_fast_init_1024_f32( arm_rfft_fast_instance_f32 * S ); -arm_status arm_rfft_fast_init_2048_f32( arm_rfft_fast_instance_f32 * S ); -arm_status arm_rfft_fast_init_4096_f32( arm_rfft_fast_instance_f32 * S ); +ARM_DSP_ATTRIBUTE arm_status arm_rfft_fast_init_32_f32( arm_rfft_fast_instance_f32 * S ); +ARM_DSP_ATTRIBUTE arm_status arm_rfft_fast_init_64_f32( arm_rfft_fast_instance_f32 * S ); +ARM_DSP_ATTRIBUTE arm_status arm_rfft_fast_init_128_f32( arm_rfft_fast_instance_f32 * S ); +ARM_DSP_ATTRIBUTE arm_status arm_rfft_fast_init_256_f32( arm_rfft_fast_instance_f32 * S ); +ARM_DSP_ATTRIBUTE arm_status arm_rfft_fast_init_512_f32( arm_rfft_fast_instance_f32 * S ); +ARM_DSP_ATTRIBUTE arm_status arm_rfft_fast_init_1024_f32( arm_rfft_fast_instance_f32 * S ); +ARM_DSP_ATTRIBUTE arm_status arm_rfft_fast_init_2048_f32( arm_rfft_fast_instance_f32 * S ); +ARM_DSP_ATTRIBUTE arm_status arm_rfft_fast_init_4096_f32( arm_rfft_fast_instance_f32 * S ); -arm_status arm_rfft_fast_init_f32 ( +ARM_DSP_ATTRIBUTE arm_status arm_rfft_fast_init_f32 ( arm_rfft_fast_instance_f32 * S, uint16_t fftLen); - void arm_rfft_fast_f32( + ARM_DSP_ATTRIBUTE void arm_rfft_fast_f32( const arm_rfft_fast_instance_f32 * S, float32_t * p, float32_t * pOut, uint8_t ifftFlag); @@ -618,7 +618,7 @@ arm_status arm_rfft_fast_init_f32 ( * @param[in] normalize normalizing factor. * @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if fftLenReal is not a supported transform length. */ - arm_status arm_dct4_init_f32( + ARM_DSP_ATTRIBUTE arm_status arm_dct4_init_f32( arm_dct4_instance_f32 * S, arm_rfft_instance_f32 * S_RFFT, arm_cfft_radix4_instance_f32 * S_CFFT, @@ -633,7 +633,7 @@ arm_status arm_rfft_fast_init_f32 ( * @param[in] pState points to state buffer. * @param[in,out] pInlineBuffer points to the in-place input and output buffer. */ - void arm_dct4_f32( + ARM_DSP_ATTRIBUTE void arm_dct4_f32( const arm_dct4_instance_f32 * S, float32_t * pState, float32_t * pInlineBuffer); @@ -664,7 +664,7 @@ arm_status arm_rfft_fast_init_f32 ( * @param[in] normalize normalizing factor. * @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if N is not a supported transform length. */ - arm_status arm_dct4_init_q31( + ARM_DSP_ATTRIBUTE arm_status arm_dct4_init_q31( arm_dct4_instance_q31 * S, arm_rfft_instance_q31 * S_RFFT, arm_cfft_radix4_instance_q31 * S_CFFT, @@ -679,7 +679,7 @@ arm_status arm_rfft_fast_init_f32 ( * @param[in] pState points to state buffer. * @param[in,out] pInlineBuffer points to the in-place input and output buffer. */ - void arm_dct4_q31( + ARM_DSP_ATTRIBUTE void arm_dct4_q31( const arm_dct4_instance_q31 * S, q31_t * pState, q31_t * pInlineBuffer); @@ -710,7 +710,7 @@ arm_status arm_rfft_fast_init_f32 ( * @param[in] normalize normalizing factor. * @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if N is not a supported transform length. */ - arm_status arm_dct4_init_q15( + ARM_DSP_ATTRIBUTE arm_status arm_dct4_init_q15( arm_dct4_instance_q15 * S, arm_rfft_instance_q15 * S_RFFT, arm_cfft_radix4_instance_q15 * S_CFFT, @@ -725,7 +725,7 @@ arm_status arm_rfft_fast_init_f32 ( * @param[in] pState points to state buffer. * @param[in,out] pInlineBuffer points to the in-place input and output buffer. */ - void arm_dct4_q15( + ARM_DSP_ATTRIBUTE void arm_dct4_q15( const arm_dct4_instance_q15 * S, q15_t * pState, q15_t * pInlineBuffer); @@ -752,7 +752,7 @@ typedef struct #endif } arm_mfcc_instance_f32 ; -arm_status arm_mfcc_init_32_f32( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_32_f32( arm_mfcc_instance_f32 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -763,7 +763,7 @@ arm_status arm_mfcc_init_32_f32( const float32_t *windowCoefs ); -arm_status arm_mfcc_init_64_f32( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_64_f32( arm_mfcc_instance_f32 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -774,7 +774,7 @@ arm_status arm_mfcc_init_64_f32( const float32_t *windowCoefs ); -arm_status arm_mfcc_init_128_f32( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_128_f32( arm_mfcc_instance_f32 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -785,7 +785,7 @@ arm_status arm_mfcc_init_128_f32( const float32_t *windowCoefs ); -arm_status arm_mfcc_init_256_f32( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_256_f32( arm_mfcc_instance_f32 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -796,7 +796,7 @@ arm_status arm_mfcc_init_256_f32( const float32_t *windowCoefs ); -arm_status arm_mfcc_init_512_f32( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_512_f32( arm_mfcc_instance_f32 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -807,7 +807,7 @@ arm_status arm_mfcc_init_512_f32( const float32_t *windowCoefs ); -arm_status arm_mfcc_init_1024_f32( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_1024_f32( arm_mfcc_instance_f32 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -818,7 +818,7 @@ arm_status arm_mfcc_init_1024_f32( const float32_t *windowCoefs ); -arm_status arm_mfcc_init_2048_f32( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_2048_f32( arm_mfcc_instance_f32 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -829,7 +829,7 @@ arm_status arm_mfcc_init_2048_f32( const float32_t *windowCoefs ); -arm_status arm_mfcc_init_4096_f32( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_4096_f32( arm_mfcc_instance_f32 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -840,7 +840,7 @@ arm_status arm_mfcc_init_4096_f32( const float32_t *windowCoefs ); -arm_status arm_mfcc_init_f32( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_f32( arm_mfcc_instance_f32 * S, uint32_t fftLen, uint32_t nbMelFilters, @@ -860,7 +860,7 @@ arm_status arm_mfcc_init_f32( @param[out] pDst points to the output MFCC values @param[inout] pTmp points to a temporary buffer of complex */ - void arm_mfcc_f32( + ARM_DSP_ATTRIBUTE void arm_mfcc_f32( const arm_mfcc_instance_f32 * S, float32_t *pSrc, float32_t *pDst, @@ -889,7 +889,7 @@ typedef struct #endif } arm_mfcc_instance_q31 ; -arm_status arm_mfcc_init_32_q31( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_32_q31( arm_mfcc_instance_q31 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -900,7 +900,7 @@ arm_status arm_mfcc_init_32_q31( const q31_t *windowCoefs ); -arm_status arm_mfcc_init_64_q31( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_64_q31( arm_mfcc_instance_q31 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -911,7 +911,7 @@ arm_status arm_mfcc_init_64_q31( const q31_t *windowCoefs ); -arm_status arm_mfcc_init_128_q31( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_128_q31( arm_mfcc_instance_q31 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -922,7 +922,7 @@ arm_status arm_mfcc_init_128_q31( const q31_t *windowCoefs ); -arm_status arm_mfcc_init_256_q31( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_256_q31( arm_mfcc_instance_q31 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -933,7 +933,7 @@ arm_status arm_mfcc_init_256_q31( const q31_t *windowCoefs ); -arm_status arm_mfcc_init_512_q31( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_512_q31( arm_mfcc_instance_q31 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -944,7 +944,7 @@ arm_status arm_mfcc_init_512_q31( const q31_t *windowCoefs ); -arm_status arm_mfcc_init_1024_q31( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_1024_q31( arm_mfcc_instance_q31 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -955,7 +955,7 @@ arm_status arm_mfcc_init_1024_q31( const q31_t *windowCoefs ); -arm_status arm_mfcc_init_2048_q31( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_2048_q31( arm_mfcc_instance_q31 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -966,7 +966,7 @@ arm_status arm_mfcc_init_2048_q31( const q31_t *windowCoefs ); -arm_status arm_mfcc_init_4096_q31( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_4096_q31( arm_mfcc_instance_q31 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -977,7 +977,7 @@ arm_status arm_mfcc_init_4096_q31( const q31_t *windowCoefs ); -arm_status arm_mfcc_init_q31( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_q31( arm_mfcc_instance_q31 * S, uint32_t fftLen, uint32_t nbMelFilters, @@ -998,7 +998,7 @@ arm_status arm_mfcc_init_q31( @param[inout] pTmp points to a temporary buffer of complex @return error status */ - arm_status arm_mfcc_q31( + ARM_DSP_ATTRIBUTE arm_status arm_mfcc_q31( const arm_mfcc_instance_q31 * S, q31_t *pSrc, q31_t *pDst, @@ -1027,7 +1027,7 @@ typedef struct #endif } arm_mfcc_instance_q15 ; -arm_status arm_mfcc_init_32_q15( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_32_q15( arm_mfcc_instance_q15 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -1038,7 +1038,7 @@ arm_status arm_mfcc_init_32_q15( const q15_t *windowCoefs ); -arm_status arm_mfcc_init_64_q15( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_64_q15( arm_mfcc_instance_q15 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -1049,7 +1049,7 @@ arm_status arm_mfcc_init_64_q15( const q15_t *windowCoefs ); -arm_status arm_mfcc_init_128_q15( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_128_q15( arm_mfcc_instance_q15 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -1060,7 +1060,7 @@ arm_status arm_mfcc_init_128_q15( const q15_t *windowCoefs ); -arm_status arm_mfcc_init_256_q15( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_256_q15( arm_mfcc_instance_q15 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -1071,7 +1071,7 @@ arm_status arm_mfcc_init_256_q15( const q15_t *windowCoefs ); -arm_status arm_mfcc_init_512_q15( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_512_q15( arm_mfcc_instance_q15 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -1082,7 +1082,7 @@ arm_status arm_mfcc_init_512_q15( const q15_t *windowCoefs ); -arm_status arm_mfcc_init_1024_q15( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_1024_q15( arm_mfcc_instance_q15 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -1093,7 +1093,7 @@ arm_status arm_mfcc_init_1024_q15( const q15_t *windowCoefs ); -arm_status arm_mfcc_init_2048_q15( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_2048_q15( arm_mfcc_instance_q15 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -1104,7 +1104,7 @@ arm_status arm_mfcc_init_2048_q15( const q15_t *windowCoefs ); -arm_status arm_mfcc_init_4096_q15( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_4096_q15( arm_mfcc_instance_q15 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -1115,7 +1115,7 @@ arm_status arm_mfcc_init_4096_q15( const q15_t *windowCoefs ); -arm_status arm_mfcc_init_q15( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_q15( arm_mfcc_instance_q15 * S, uint32_t fftLen, uint32_t nbMelFilters, @@ -1136,7 +1136,7 @@ arm_status arm_mfcc_init_q15( @param[inout] pTmp points to a temporary buffer of complex @return error status */ - arm_status arm_mfcc_q15( + ARM_DSP_ATTRIBUTE arm_status arm_mfcc_q15( const arm_mfcc_instance_q15 * S, q15_t *pSrc, q15_t *pDst, diff --git a/Include/dsp/transform_functions_f16.h b/Include/dsp/transform_functions_f16.h index 0f37dba63..7a892ddb8 100755 --- a/Include/dsp/transform_functions_f16.h +++ b/Include/dsp/transform_functions_f16.h @@ -24,8 +24,8 @@ */ -#ifndef _TRANSFORM_FUNCTIONS_F16_H_ -#define _TRANSFORM_FUNCTIONS_F16_H_ +#ifndef TRANSFORM_FUNCTIONS_F16_H_ +#define TRANSFORM_FUNCTIONS_F16_H_ #include "arm_math_types_f16.h" #include "arm_math_memory.h" @@ -93,18 +93,18 @@ extern "C" } arm_cfft_instance_f16; -arm_status arm_cfft_init_4096_f16(arm_cfft_instance_f16 * S); -arm_status arm_cfft_init_2048_f16(arm_cfft_instance_f16 * S); -arm_status arm_cfft_init_1024_f16(arm_cfft_instance_f16 * S); -arm_status arm_cfft_init_512_f16(arm_cfft_instance_f16 * S); -arm_status arm_cfft_init_256_f16(arm_cfft_instance_f16 * S); -arm_status arm_cfft_init_128_f16(arm_cfft_instance_f16 * S); -arm_status arm_cfft_init_64_f16(arm_cfft_instance_f16 * S); -arm_status arm_cfft_init_32_f16(arm_cfft_instance_f16 * S); -arm_status arm_cfft_init_16_f16(arm_cfft_instance_f16 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_4096_f16(arm_cfft_instance_f16 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_2048_f16(arm_cfft_instance_f16 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_1024_f16(arm_cfft_instance_f16 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_512_f16(arm_cfft_instance_f16 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_256_f16(arm_cfft_instance_f16 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_128_f16(arm_cfft_instance_f16 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_64_f16(arm_cfft_instance_f16 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_32_f16(arm_cfft_instance_f16 * S); +ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_16_f16(arm_cfft_instance_f16 * S); - arm_status arm_cfft_init_f16( + ARM_DSP_ATTRIBUTE arm_status arm_cfft_init_f16( arm_cfft_instance_f16 * S, uint16_t fftLen); @@ -124,16 +124,16 @@ typedef struct const float16_t * pTwiddleRFFT; /**< Twiddle factors real stage */ } arm_rfft_fast_instance_f16 ; -arm_status arm_rfft_fast_init_32_f16( arm_rfft_fast_instance_f16 * S ); -arm_status arm_rfft_fast_init_64_f16( arm_rfft_fast_instance_f16 * S ); -arm_status arm_rfft_fast_init_128_f16( arm_rfft_fast_instance_f16 * S ); -arm_status arm_rfft_fast_init_256_f16( arm_rfft_fast_instance_f16 * S ); -arm_status arm_rfft_fast_init_512_f16( arm_rfft_fast_instance_f16 * S ); -arm_status arm_rfft_fast_init_1024_f16( arm_rfft_fast_instance_f16 * S ); -arm_status arm_rfft_fast_init_2048_f16( arm_rfft_fast_instance_f16 * S ); -arm_status arm_rfft_fast_init_4096_f16( arm_rfft_fast_instance_f16 * S ); +ARM_DSP_ATTRIBUTE arm_status arm_rfft_fast_init_32_f16( arm_rfft_fast_instance_f16 * S ); +ARM_DSP_ATTRIBUTE arm_status arm_rfft_fast_init_64_f16( arm_rfft_fast_instance_f16 * S ); +ARM_DSP_ATTRIBUTE arm_status arm_rfft_fast_init_128_f16( arm_rfft_fast_instance_f16 * S ); +ARM_DSP_ATTRIBUTE arm_status arm_rfft_fast_init_256_f16( arm_rfft_fast_instance_f16 * S ); +ARM_DSP_ATTRIBUTE arm_status arm_rfft_fast_init_512_f16( arm_rfft_fast_instance_f16 * S ); +ARM_DSP_ATTRIBUTE arm_status arm_rfft_fast_init_1024_f16( arm_rfft_fast_instance_f16 * S ); +ARM_DSP_ATTRIBUTE arm_status arm_rfft_fast_init_2048_f16( arm_rfft_fast_instance_f16 * S ); +ARM_DSP_ATTRIBUTE arm_status arm_rfft_fast_init_4096_f16( arm_rfft_fast_instance_f16 * S ); -arm_status arm_rfft_fast_init_f16 ( +ARM_DSP_ATTRIBUTE arm_status arm_rfft_fast_init_f16 ( arm_rfft_fast_instance_f16 * S, uint16_t fftLen); @@ -144,7 +144,7 @@ arm_status arm_rfft_fast_init_f16 ( uint8_t ifftFlag); /* Deprecated */ - arm_status arm_cfft_radix4_init_f16( + ARM_DSP_ATTRIBUTE arm_status arm_cfft_radix4_init_f16( arm_cfft_radix4_instance_f16 * S, uint16_t fftLen, uint8_t ifftFlag, @@ -157,7 +157,7 @@ arm_status arm_rfft_fast_init_f16 ( /* Deprecated */ - arm_status arm_cfft_radix2_init_f16( + ARM_DSP_ATTRIBUTE arm_status arm_cfft_radix2_init_f16( arm_cfft_radix2_instance_f16 * S, uint16_t fftLen, uint8_t ifftFlag, @@ -190,7 +190,7 @@ typedef struct #endif } arm_mfcc_instance_f16 ; -arm_status arm_mfcc_init_32_f16( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_32_f16( arm_mfcc_instance_f16 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -201,7 +201,7 @@ arm_status arm_mfcc_init_32_f16( const float16_t *windowCoefs ); -arm_status arm_mfcc_init_64_f16( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_64_f16( arm_mfcc_instance_f16 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -212,7 +212,7 @@ arm_status arm_mfcc_init_64_f16( const float16_t *windowCoefs ); -arm_status arm_mfcc_init_128_f16( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_128_f16( arm_mfcc_instance_f16 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -223,7 +223,7 @@ arm_status arm_mfcc_init_128_f16( const float16_t *windowCoefs ); -arm_status arm_mfcc_init_256_f16( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_256_f16( arm_mfcc_instance_f16 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -234,7 +234,7 @@ arm_status arm_mfcc_init_256_f16( const float16_t *windowCoefs ); -arm_status arm_mfcc_init_512_f16( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_512_f16( arm_mfcc_instance_f16 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -245,7 +245,7 @@ arm_status arm_mfcc_init_512_f16( const float16_t *windowCoefs ); -arm_status arm_mfcc_init_1024_f16( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_1024_f16( arm_mfcc_instance_f16 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -256,7 +256,7 @@ arm_status arm_mfcc_init_1024_f16( const float16_t *windowCoefs ); -arm_status arm_mfcc_init_2048_f16( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_2048_f16( arm_mfcc_instance_f16 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -267,7 +267,7 @@ arm_status arm_mfcc_init_2048_f16( const float16_t *windowCoefs ); -arm_status arm_mfcc_init_4096_f16( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_4096_f16( arm_mfcc_instance_f16 * S, uint32_t nbMelFilters, uint32_t nbDctOutputs, @@ -278,7 +278,7 @@ arm_status arm_mfcc_init_4096_f16( const float16_t *windowCoefs ); -arm_status arm_mfcc_init_f16( +ARM_DSP_ATTRIBUTE arm_status arm_mfcc_init_f16( arm_mfcc_instance_f16 * S, uint32_t fftLen, uint32_t nbMelFilters, diff --git a/Include/dsp/utils.h b/Include/dsp/utils.h index 7dba11fd0..e0c5c90c1 100755 --- a/Include/dsp/utils.h +++ b/Include/dsp/utils.h @@ -22,9 +22,9 @@ * limitations under the License. */ -#ifndef _ARM_MATH_UTILS_H_ +#ifndef ARM_MATH_UTILS_H_ -#define _ARM_MATH_UTILS_H_ +#define ARM_MATH_UTILS_H_ #include "arm_math_types.h" #include diff --git a/Include/dsp/window_functions.h b/Include/dsp/window_functions.h index b9487849d..27f05a739 100644 --- a/Include/dsp/window_functions.h +++ b/Include/dsp/window_functions.h @@ -24,8 +24,8 @@ */ -#ifndef _WINDOW_FUNCTIONS_H_ -#define _WINDOW_FUNCTIONS_H_ +#ifndef WINDOW_FUNCTIONS_H_ +#define WINDOW_FUNCTIONS_H_ #include "arm_math_types.h" #include "arm_math_memory.h" diff --git a/PrivateInclude/arm_sorting.h b/PrivateInclude/arm_sorting.h index ec002b2f1..c1d333653 100644 --- a/PrivateInclude/arm_sorting.h +++ b/PrivateInclude/arm_sorting.h @@ -22,8 +22,8 @@ * limitations under the License. */ -#ifndef _ARM_SORTING_H_ -#define _ARM_SORTING_H_ +#ifndef ARM_SORTING_H_ +#define ARM_SORTING_H_ #include "arm_math.h" diff --git a/PrivateInclude/arm_vec_fft.h b/PrivateInclude/arm_vec_fft.h index fdf6498c3..2f51edb8d 100755 --- a/PrivateInclude/arm_vec_fft.h +++ b/PrivateInclude/arm_vec_fft.h @@ -22,8 +22,8 @@ * limitations under the License. */ -#ifndef _ARM_VEC_FFT_H_ -#define _ARM_VEC_FFT_H_ +#ifndef ARM_VEC_FFT_H_ +#define ARM_VEC_FFT_H_ #include "arm_math.h" #include "arm_helium_utils.h" diff --git a/PrivateInclude/arm_vec_filtering.h b/PrivateInclude/arm_vec_filtering.h index b2a06903d..998dc5cfe 100755 --- a/PrivateInclude/arm_vec_filtering.h +++ b/PrivateInclude/arm_vec_filtering.h @@ -22,8 +22,8 @@ * limitations under the License. */ -#ifndef _ARM_VEC_FILTERING_H_ -#define _ARM_VEC_FILTERING_H_ +#ifndef ARM_VEC_FILTERING_H_ +#define ARM_VEC_FILTERING_H_ #include "arm_math.h" #include "arm_helium_utils.h" diff --git a/Testing/cmsis_build/cdefault.yml b/Testing/cmsis_build/cdefault.yml index 81eb557c2..f11a723a1 100644 --- a/Testing/cmsis_build/cdefault.yml +++ b/Testing/cmsis_build/cdefault.yml @@ -28,6 +28,7 @@ default: - -Wno-parentheses-equality - -Wno-reserved-identifier - -ffunction-sections + - -DARM_DSP_ATTRIBUTE=__attribute__((weak)) CPP: - -fno-rtti - -DNDEBUG @@ -68,6 +69,7 @@ default: - -Wno-maybe-uninitialized - -fdata-sections - -mfp16-format=ieee + - -DARM_DSP_ATTRIBUTE=__attribute__((weak)) CPP: - -fno-rtti - -DNDEBUG @@ -116,6 +118,7 @@ default: - -Wno-parentheses-equality - -Wno-reserved-identifier - -ffunction-sections + - -DARM_DSP_ATTRIBUTE=__attribute__((weak)) CPP: - -fno-rtti - -DNDEBUG