Index: include/core/SkPreConfig.h |
diff --git a/include/core/SkPreConfig.h b/include/core/SkPreConfig.h |
index c7331113dc5fb5c5548582cbbf794b04185aa947..d45c208410b7c51db4e470e44dfeb4dda1841086 100644 |
--- a/include/core/SkPreConfig.h |
+++ b/include/core/SkPreConfig.h |
@@ -197,6 +197,13 @@ |
#define SK_CPU_ARM64 |
#endif |
+// All 64-bit ARM chips have NEON. Many 32-bit ARM chips do too. |
+// TODO: Why don't we want NEON on iOS? |
+#if !defined(SK_ARM_HAS_NEON) && !defined(SK_BUILD_FOR_IOS) && \ |
+ (defined(SK_CPU_ARM64) || defined(__ARM_NEON__)) |
+ #define SK_ARM_HAS_NEON |
+#endif |
+ |
////////////////////////////////////////////////////////////////////// |
#if !defined(SKIA_IMPLEMENTATION) |