Adding support for Apple Compiler
@@ -98,6 +98,10 @@ extern "C"
#if !defined(ARM_MATH_AUTOVECTORIZE)
+#if !defined(__ARM_FEATURE_MVE)
+#define __ARM_FEATURE_MVE 0
+#endif
+
#if __ARM_FEATURE_MVE
#if !defined(ARM_MATH_MVEI)
#define ARM_MATH_MVEI
@@ -162,6 +166,12 @@ extern "C"
#define IAR_ONLY_LOW_OPTIMIZATION_ENTER
#define IAR_ONLY_LOW_OPTIMIZATION_EXIT
+#elif defined ( __APPLE_CC__ )
+ #define LOW_OPTIMIZATION_ENTER
+ #define LOW_OPTIMIZATION_EXIT
+ #define IAR_ONLY_LOW_OPTIMIZATION_ENTER
+ #define IAR_ONLY_LOW_OPTIMIZATION_EXIT
+
#elif defined ( __GNUC__ )
#define LOW_OPTIMIZATION_ENTER \
__attribute__(( optimize("-O1") ))
