| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkCpu_DEFINED | 8 #ifndef SkCpu_DEFINED |
| 9 #define SkCpu_DEFINED | 9 #define SkCpu_DEFINED |
| 10 | 10 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 #else | 74 #else |
| 75 #if defined(SK_ARM_HAS_NEON) | 75 #if defined(SK_ARM_HAS_NEON) |
| 76 features |= NEON; | 76 features |= NEON; |
| 77 #endif | 77 #endif |
| 78 | 78 |
| 79 #if defined(SK_CPU_ARM64) | 79 #if defined(SK_CPU_ARM64) |
| 80 features |= NEON|NEON_FMA|VFP_FP16; | 80 features |= NEON|NEON_FMA|VFP_FP16; |
| 81 #endif | 81 #endif |
| 82 | 82 |
| 83 #if defined(__ARM_FEATURE_CRC32) | 83 #if defined(SK_ARM_HAS_CRC32) |
| 84 features |= CRC32; | 84 features |= CRC32; |
| 85 #endif | 85 #endif |
| 86 | 86 |
| 87 #endif | 87 #endif |
| 88 return (features & mask) == mask; | 88 return (features & mask) == mask; |
| 89 } | 89 } |
| 90 | 90 |
| 91 #endif//SkCpu_DEFINED | 91 #endif//SkCpu_DEFINED |
| OLD | NEW |