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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 #endif | 167 #endif |
168 | 168 |
169 #if defined(__thumb2__) && (SK_ARM_ARCH >= 6) \ | 169 #if defined(__thumb2__) && (SK_ARM_ARCH >= 6) \ |
170 || !defined(__thumb__) && ((SK_ARM_ARCH > 5) || defined(__ARM_AR
CH_5E__) \ | 170 || !defined(__thumb__) && ((SK_ARM_ARCH > 5) || defined(__ARM_AR
CH_5E__) \ |
171 || defined(__ARM_ARCH_5TE__) || defined(__ARM_ARCH_5TEJ__)) | 171 || defined(__ARM_ARCH_5TE__) || defined(__ARM_ARCH_5TEJ__)) |
172 #define SK_ARM_HAS_EDSP | 172 #define SK_ARM_HAS_EDSP |
173 #endif | 173 #endif |
174 #endif | 174 #endif |
175 #endif | 175 #endif |
176 | 176 |
| 177 #if defined(__aarch64__) |
| 178 #define SK_CPU_ARM64 |
| 179 #endif |
| 180 |
177 ////////////////////////////////////////////////////////////////////// | 181 ////////////////////////////////////////////////////////////////////// |
178 | 182 |
179 #if !defined(SKIA_IMPLEMENTATION) | 183 #if !defined(SKIA_IMPLEMENTATION) |
180 #define SKIA_IMPLEMENTATION 0 | 184 #define SKIA_IMPLEMENTATION 0 |
181 #endif | 185 #endif |
182 | 186 |
183 #if defined(SKIA_DLL) | 187 #if defined(SKIA_DLL) |
184 #if defined(WIN32) | 188 #if defined(WIN32) |
185 #if SKIA_IMPLEMENTATION | 189 #if SKIA_IMPLEMENTATION |
186 #define SK_API __declspec(dllexport) | 190 #define SK_API __declspec(dllexport) |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 * | 236 * |
233 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. | 237 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. |
234 */ | 238 */ |
235 #if SK_HAS_ATTRIBUTE(optimize) | 239 #if SK_HAS_ATTRIBUTE(optimize) |
236 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) | 240 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) |
237 #else | 241 #else |
238 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ | 242 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ |
239 #endif | 243 #endif |
240 | 244 |
241 #endif | 245 #endif |
OLD | NEW |