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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 #define SK_ARM_HAS_EDSP | 190 #define SK_ARM_HAS_EDSP |
191 #endif | 191 #endif |
192 #endif | 192 #endif |
193 #endif | 193 #endif |
194 | 194 |
195 // Disable ARM64 optimizations for iOS due to complications regarding gyp and iO
S. | 195 // Disable ARM64 optimizations for iOS due to complications regarding gyp and iO
S. |
196 #if defined(__aarch64__) && !defined(SK_BUILD_FOR_IOS) | 196 #if defined(__aarch64__) && !defined(SK_BUILD_FOR_IOS) |
197 #define SK_CPU_ARM64 | 197 #define SK_CPU_ARM64 |
198 #endif | 198 #endif |
199 | 199 |
200 // All 64-bit ARM chips have NEON. Many 32-bit ARM chips do too. | |
201 #if !defined(SK_ARM_HAS_NEON) && (defined(SK_CPU_ARM64) || defined(__ARM_NEON__)
) | |
202 #define SK_ARM_HAS_NEON | |
203 #endif | |
204 | |
205 ////////////////////////////////////////////////////////////////////// | 200 ////////////////////////////////////////////////////////////////////// |
206 | 201 |
207 #if !defined(SKIA_IMPLEMENTATION) | 202 #if !defined(SKIA_IMPLEMENTATION) |
208 #define SKIA_IMPLEMENTATION 0 | 203 #define SKIA_IMPLEMENTATION 0 |
209 #endif | 204 #endif |
210 | 205 |
211 #if defined(SKIA_DLL) | 206 #if defined(SKIA_DLL) |
212 #if defined(WIN32) | 207 #if defined(WIN32) |
213 #if SKIA_IMPLEMENTATION | 208 #if SKIA_IMPLEMENTATION |
214 #define SK_API __declspec(dllexport) | 209 #define SK_API __declspec(dllexport) |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 * | 255 * |
261 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. | 256 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. |
262 */ | 257 */ |
263 #if SK_HAS_ATTRIBUTE(optimize) | 258 #if SK_HAS_ATTRIBUTE(optimize) |
264 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) | 259 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) |
265 #else | 260 #else |
266 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ | 261 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ |
267 #endif | 262 #endif |
268 | 263 |
269 #endif | 264 #endif |
OLD | NEW |