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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. | 200 // All 64-bit ARM chips have NEON. Many 32-bit ARM chips do too. |
201 // TODO: Why don't we want NEON on iOS? | 201 #if !defined(SK_ARM_HAS_NEON) && (defined(SK_CPU_ARM64) || defined(__ARM_NEON__)
) |
202 #if !defined(SK_ARM_HAS_NEON) && !defined(SK_BUILD_FOR_IOS) && \ | |
203 (defined(SK_CPU_ARM64) || defined(__ARM_NEON__)) | |
204 #define SK_ARM_HAS_NEON | 202 #define SK_ARM_HAS_NEON |
205 #endif | 203 #endif |
206 | 204 |
207 ////////////////////////////////////////////////////////////////////// | 205 ////////////////////////////////////////////////////////////////////// |
208 | 206 |
209 #if !defined(SKIA_IMPLEMENTATION) | 207 #if !defined(SKIA_IMPLEMENTATION) |
210 #define SKIA_IMPLEMENTATION 0 | 208 #define SKIA_IMPLEMENTATION 0 |
211 #endif | 209 #endif |
212 | 210 |
213 #if defined(SKIA_DLL) | 211 #if defined(SKIA_DLL) |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 * | 260 * |
263 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. | 261 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. |
264 */ | 262 */ |
265 #if SK_HAS_ATTRIBUTE(optimize) | 263 #if SK_HAS_ATTRIBUTE(optimize) |
266 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) | 264 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) |
267 #else | 265 #else |
268 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ | 266 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ |
269 #endif | 267 #endif |
270 | 268 |
271 #endif | 269 #endif |
OLD | NEW |