core_cmSimd.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /**************************************************************************//**
  2. * @file core_cmSimd.h
  3. * @brief CMSIS Cortex-M SIMD Header File
  4. * @version V4.30
  5. * @date 20. October 2015
  6. ******************************************************************************/
  7. /* Copyright (c) 2009 - 2015 ARM LIMITED
  8. All rights reserved.
  9. Redistribution and use in source and binary forms, with or without
  10. modification, are permitted provided that the following conditions are met:
  11. - Redistributions of source code must retain the above copyright
  12. notice, this list of conditions and the following disclaimer.
  13. - Redistributions in binary form must reproduce the above copyright
  14. notice, this list of conditions and the following disclaimer in the
  15. documentation and/or other materials provided with the distribution.
  16. - Neither the name of ARM nor the names of its contributors may be used
  17. to endorse or promote products derived from this software without
  18. specific prior written permission.
  19. *
  20. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  21. AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  22. IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  23. ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE
  24. LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  25. CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  26. SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  27. INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  28. CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  29. ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  30. POSSIBILITY OF SUCH DAMAGE.
  31. ---------------------------------------------------------------------------*/
  32. #if defined ( __ICCARM__ )
  33. #pragma system_include /* treat file as system include file for MISRA check */
  34. #elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
  35. #pragma clang system_header /* treat file as system include file */
  36. #endif
  37. #ifndef __CORE_CMSIMD_H
  38. #define __CORE_CMSIMD_H
  39. #ifdef __cplusplus
  40. extern "C" {
  41. #endif
  42. /* ################### Compiler specific Intrinsics ########################### */
  43. /** \defgroup CMSIS_SIMD_intrinsics CMSIS SIMD Intrinsics
  44. Access to dedicated SIMD instructions
  45. @{
  46. */
  47. /*------------------ RealView Compiler -----------------*/
  48. #if defined ( __CC_ARM )
  49. #include "cmsis_armcc.h"
  50. /*------------------ ARM Compiler V6 -------------------*/
  51. #elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
  52. #include "cmsis_armcc_V6.h"
  53. /*------------------ GNU Compiler ----------------------*/
  54. #elif defined ( __GNUC__ )
  55. #include "cmsis_gcc.h"
  56. /*------------------ ICC Compiler ----------------------*/
  57. #elif defined ( __ICCARM__ )
  58. #include <cmsis_iar.h>
  59. /*------------------ TI CCS Compiler -------------------*/
  60. #elif defined ( __TMS470__ )
  61. #include <cmsis_ccs.h>
  62. /*------------------ TASKING Compiler ------------------*/
  63. #elif defined ( __TASKING__ )
  64. /*
  65. * The CMSIS functions have been implemented as intrinsics in the compiler.
  66. * Please use "carm -?i" to get an up to date list of all intrinsics,
  67. * Including the CMSIS ones.
  68. */
  69. /*------------------ COSMIC Compiler -------------------*/
  70. #elif defined ( __CSMC__ )
  71. #include <cmsis_csm.h>
  72. #endif
  73. /*@} end of group CMSIS_SIMD_intrinsics */
  74. #ifdef __cplusplus
  75. }
  76. #endif
  77. #endif /* __CORE_CMSIMD_H */