| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #ifndef SkPreConfig_DEFINED | 10 #ifndef SkPreConfig_DEFINED |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 #endif | 177 #endif |
| 178 | 178 |
| 179 #if defined(__thumb2__) && (SK_ARM_ARCH >= 6) \ | 179 #if defined(__thumb2__) && (SK_ARM_ARCH >= 6) \ |
| 180 || !defined(__thumb__) && ((SK_ARM_ARCH > 5) || defined(__ARM_AR
CH_5E__) \ | 180 || !defined(__thumb__) && ((SK_ARM_ARCH > 5) || defined(__ARM_AR
CH_5E__) \ |
| 181 || defined(__ARM_ARCH_5TE__) || defined(__ARM_ARCH_5TEJ__)) | 181 || defined(__ARM_ARCH_5TE__) || defined(__ARM_ARCH_5TEJ__)) |
| 182 #define SK_ARM_HAS_EDSP | 182 #define SK_ARM_HAS_EDSP |
| 183 #endif | 183 #endif |
| 184 #endif | 184 #endif |
| 185 #endif | 185 #endif |
| 186 | 186 |
| 187 #if defined(__aarch64__) |
| 188 #define SK_CPU_ARM64 |
| 189 #endif |
| 190 |
| 187 ////////////////////////////////////////////////////////////////////// | 191 ////////////////////////////////////////////////////////////////////// |
| 188 | 192 |
| 189 #if !defined(SKIA_IMPLEMENTATION) | 193 #if !defined(SKIA_IMPLEMENTATION) |
| 190 #define SKIA_IMPLEMENTATION 0 | 194 #define SKIA_IMPLEMENTATION 0 |
| 191 #endif | 195 #endif |
| 192 | 196 |
| 193 #if defined(SKIA_DLL) | 197 #if defined(SKIA_DLL) |
| 194 #if defined(WIN32) | 198 #if defined(WIN32) |
| 195 #if SKIA_IMPLEMENTATION | 199 #if SKIA_IMPLEMENTATION |
| 196 #define SK_API __declspec(dllexport) | 200 #define SK_API __declspec(dllexport) |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 * | 246 * |
| 243 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. | 247 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. |
| 244 */ | 248 */ |
| 245 #if SK_HAS_ATTRIBUTE(optimize) | 249 #if SK_HAS_ATTRIBUTE(optimize) |
| 246 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) | 250 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) |
| 247 #else | 251 #else |
| 248 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ | 252 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ |
| 249 #endif | 253 #endif |
| 250 | 254 |
| 251 #endif | 255 #endif |
| OLD | NEW |