Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new ARM_DSP_ATTRIBUTE compilation define. #188

Merged
merged 6 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions ComputeLibrary/Include/NEMath.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions Include/arm_common_tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Include/arm_common_tables_f16.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions Include/arm_const_structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Include/arm_const_structs_f16.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Include/arm_helium_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Include/arm_math.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Include/arm_math_f16.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions Include/arm_math_memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
16 changes: 14 additions & 2 deletions Include/arm_math_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,21 @@
* limitations under the License.
*/

#ifndef _ARM_MATH_TYPES_H_
#ifndef ARM_MATH_TYPES_H_

#define _ARM_MATH_TYPES_H_
#define ARM_MATH_TYPES_H_

#if defined(ARM_DSP_CUSTOM_CONFIG)
#include "arm_dsp_config.h"
#endif

#ifndef ARM_DSP_ATTRIBUTE
#define ARM_DSP_ATTRIBUTE
#endif

#ifndef ARM_DSP_TABLE_ATTRIBUTE
#define ARM_DSP_TABLE_ATTRIBUTE
#endif

#ifdef __cplusplus
extern "C"
Expand Down
4 changes: 2 additions & 2 deletions Include/arm_math_types_f16.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions Include/arm_mve_tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions Include/arm_mve_tables_f16.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions Include/arm_vec_math.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Include/arm_vec_math_f16.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Include/dsp/basic_math_functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Include/dsp/basic_math_functions_f16.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Include/dsp/bayes_functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Include/dsp/bayes_functions_f16.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Include/dsp/complex_math_functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Include/dsp/complex_math_functions_f16.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Include/dsp/controller_functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Include/dsp/controller_functions_f16.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Include/dsp/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Include/dsp/distance_functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Include/dsp/distance_functions_f16.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Include/dsp/fast_math_functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Include/dsp/fast_math_functions_f16.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Include/dsp/filtering_functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Include/dsp/filtering_functions_f16.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Include/dsp/interpolation_functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Include/dsp/interpolation_functions_f16.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Include/dsp/matrix_functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Include/dsp/matrix_functions_f16.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Include/dsp/matrix_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading
Loading