Commit Graph

8 Commits (60a8c8805cf78b766dbb8f6d1e0cd22534a6c102)

Author SHA1 Message Date
Johan Bengtsson 065e8351c3 DSP: Remove undefined behavior in post-increment/decrement read (#1443)
According to the C standard q15_t * and const q15_t * are not compatible
types which, among other things, imply that an object of type const
q15_t * can't be modified by writing to a q15_t ** or vice versa.
Programs doing this are undefined.

Because of this rule all programs using the functions read_q15x2_ia,
read_q15x2_da, read_q7x4_ia, or read_q7x4_da for reading data from an
array of constant elements will be undefined. To solve this it is not
enough to change the type of the function since this will give problems
when reading data from an array of non-const elements. To get a defined
solution I needed to switch from functions to macros to allow the
increment to be done in the original type of the pointer.
4 years ago
Christophe Favergeon 5fac45cc96 CMSIS-DSP: Removed float promotion issues
Corrected some additional warnings when compiling with AC5 compiler.
Updated version numbers,
5 years ago
Christophe Favergeon d5ad8e995b CMSIS-DSP: Update copyright year and version numbers in comments. 5 years ago
Christophe Favergeon a7fd426546 CMSIS-DSP: Removed patch for armclang issue on M55
Issue will be corrected in 6.15
5 years ago
Christophe Favergeon 0bcb1384f2 CMSIS-DSP: More consistent use of the flag ARM_MATH_AUTOVECTORIZE 5 years ago
Christophe Favergeon 41f2015387 CMSIS-DSP: Re-organization of arm_math.h
arm_math.h splitted into several headers.
Interpolation functions moved from arm_math.h to a separate folder.
5 years ago
Christophe Favergeon 566550e15d CMSIS-DSP: doxygen corrections 6 years ago
Christophe Favergeon 8268b079d5 CMSIS-DSP: Added new matrix functions and MVE version
arm_mat_mult_q7.c
arm_mat_trans_q7.c
arm_mat_vec_mult_f32.c
arm_mat_vec_mult_q15.c
arm_mat_vec_mult_q31.c
arm_mat_vec_mult_q7.c
6 years ago