Index: src/core/SkUtilsArm.h |
diff --git a/src/core/SkUtilsArm.h b/src/core/SkUtilsArm.h |
index 51ae7e4a9567c8833974ea71e3ae150710d56a9a..f15648136c15c4f6ba59e5cd0fca932485d3c745 100644 |
--- a/src/core/SkUtilsArm.h |
+++ b/src/core/SkUtilsArm.h |
@@ -21,9 +21,9 @@ |
#define SK_ARM_NEON_MODE_ALWAYS 1 |
#define SK_ARM_NEON_MODE_DYNAMIC 2 |
-#if defined(SK_ARM_HAS_OPTIONAL_NEON) |
+#if defined(SK_CPU_ARM32) && defined(SK_ARM_HAS_OPTIONAL_NEON) |
# define SK_ARM_NEON_MODE SK_ARM_NEON_MODE_DYNAMIC |
-#elif defined(SK_ARM_HAS_NEON) |
+#elif defined(SK_CPU_ARM32) && defined(SK_ARM_HAS_NEON) || defined(SK_CPU_ARM64) |
# define SK_ARM_NEON_MODE SK_ARM_NEON_MODE_ALWAYS |
#else |
# define SK_ARM_NEON_MODE SK_ARM_NEON_MODE_NONE |