From e74b2f31640eecde9ddc1f13808619fb29686d80 Mon Sep 17 00:00:00 2001 From: "Huabing.Xu" Date: Tue, 23 Sep 2014 18:15:26 +0800 Subject: [PATCH] add macro to enable neon on IOS --- cocos/math/MathUtil.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cocos/math/MathUtil.h b/cocos/math/MathUtil.h index acf6ab0b42..463130aa03 100644 --- a/cocos/math/MathUtil.h +++ b/cocos/math/MathUtil.h @@ -115,6 +115,10 @@ NS_CC_MATH_END #define MATRIX_SIZE ( sizeof(float) * 16) +#ifdef __ARM_NEON__ +#define USE_NEON +#endif + #ifdef USE_NEON #include "MathUtilNeon.inl" #else