core_cmsimd.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. #if defined ( __ICCARM__ )
  25. #pragma system_include /* treat file as system include file for MISRA check */
  26. #elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
  27. #pragma clang system_header /* treat file as system include file */
  28. #endif
  29. #ifndef __CORE_CMSIMD_H
  30. #define __CORE_CMSIMD_H
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34. /* ################### Compiler specific Intrinsics ########################### */
  35. /** \defgroup CMSIS_SIMD_intrinsics CMSIS SIMD Intrinsics
  36. Access to dedicated SIMD instructions
  37. @{
  38. */
  39. /*------------------ ARM Compiler 4/5 ------------------*/
  40. #if defined ( __CC_ARM )
  41. #include "cmsis_armcc.h"
  42. /*------------------ ARM Compiler 6 --------------------*/
  43. #elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
  44. #include "cmsis_armclang.h"
  45. /*------------------ GNU Compiler ----------------------*/
  46. #elif defined ( __GNUC__ )
  47. #include "cmsis_gcc.h"
  48. /*------------------ ICC Compiler ----------------------*/
  49. #elif defined ( __ICCARM__ )
  50. #include <cmsis_iar.h>
  51. /*------------------ TI CCS Compiler -------------------*/
  52. #elif defined ( __TI_ARM__ )
  53. #include <cmsis_ccs.h>
  54. /*------------------ TASKING Compiler ------------------*/
  55. #elif defined ( __TASKING__ )
  56. /*
  57. * The CMSIS functions have been implemented as intrinsics in the compiler.
  58. * Please use "carm -?i" to get an up to date list of all intrinsics,
  59. * Including the CMSIS ones.
  60. */
  61. /*------------------ COSMIC Compiler -------------------*/
  62. #elif defined ( __CSMC__ )
  63. #include <cmsis_csm.h>
  64. #endif
  65. /*@}*/ /* end of group CMSIS_SIMD_intrinsics */
  66. #ifdef __cplusplus
  67. }
  68. #endif
  69. #endif /* __CORE_CMSIMD_H */