]> begriffs open source - cmsis/blob - CMSIS/Core/Include/core_cmsimd.h
Changed common defines for tool chain IAR.
[cmsis] / CMSIS / Core / Include / core_cmsimd.h
1 /**************************************************************************//**
2  * @file     core_cmsimd.h
3  * @brief    CMSIS Cortex-M SIMD Header File
4  * @version  V5.00
5  * @date     02. March 2016
6  ******************************************************************************/
7 /*
8  * Copyright (c) 2009-2016 ARM Limited. All rights reserved.
9  *
10  * SPDX-License-Identifier: Apache-2.0
11  *
12  * Licensed under the Apache License, Version 2.0 (the License); you may
13  * not use this file except in compliance with the License.
14  * You may obtain a copy of the License at
15  *
16  * http://www.apache.org/licenses/LICENSE-2.0
17  *
18  * Unless required by applicable law or agreed to in writing, software
19  * distributed under the License is distributed on an AS IS BASIS, WITHOUT
20  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21  * See the License for the specific language governing permissions and
22  * limitations under the License.
23  */
24
25 #if   defined ( __ICCARM__ )
26  #pragma system_include         /* treat file as system include file for MISRA check */
27 #elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
28   #pragma clang system_header   /* treat file as system include file */
29 #endif
30
31 #ifndef __CORE_CMSIMD_H
32 #define __CORE_CMSIMD_H
33
34 #ifdef __cplusplus
35  extern "C" {
36 #endif
37
38
39 /* ###################  Compiler specific Intrinsics  ########################### */
40 /** \defgroup CMSIS_SIMD_intrinsics CMSIS SIMD Intrinsics
41   Access to dedicated SIMD instructions
42   @{
43 */
44
45 /*------------------ ARM Compiler 4/5 ------------------*/
46 #if   defined ( __CC_ARM )
47   #include "cmsis_armcc.h"
48
49 /*------------------ ARM Compiler 6 --------------------*/
50 #elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
51   #include "cmsis_armclang.h"
52
53 /*------------------ GNU Compiler ----------------------*/
54 #elif defined ( __GNUC__ )
55   #include "cmsis_gcc.h"
56
57 /*------------------ ICC Compiler ----------------------*/
58 #elif defined ( __ICCARM__ )
59   #include <cmsis_iar.h>
60
61 /*------------------ TI CCS Compiler -------------------*/
62 #elif defined ( __TI_ARM__ )
63   #include <cmsis_ccs.h>
64
65 /*------------------ TASKING Compiler ------------------*/
66 #elif defined ( __TASKING__ )
67   /*
68    * The CMSIS functions have been implemented as intrinsics in the compiler.
69    * Please use "carm -?i" to get an up to date list of all intrinsics,
70    * Including the CMSIS ones.
71    */
72
73 /*------------------ COSMIC Compiler -------------------*/
74 #elif defined ( __CSMC__ )
75   #include <cmsis_csm.h>
76
77 #endif
78
79 /*@}*/ /* end of group CMSIS_SIMD_intrinsics */
80
81
82 #ifdef __cplusplus
83 }
84 #endif
85
86 #endif /* __CORE_CMSIMD_H */