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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 #if defined(__thumb2__) && (SK_ARM_ARCH >= 6) \ | 188 #if defined(__thumb2__) && (SK_ARM_ARCH >= 6) \ |
189 || !defined(__thumb__) && ((SK_ARM_ARCH > 5) || defined(__ARM_AR
CH_5E__) \ | 189 || !defined(__thumb__) && ((SK_ARM_ARCH > 5) || defined(__ARM_AR
CH_5E__) \ |
190 || defined(__ARM_ARCH_5TE__) || defined(__ARM_ARCH_5TEJ__)) | 190 || defined(__ARM_ARCH_5TE__) || defined(__ARM_ARCH_5TEJ__)) |
191 #define SK_ARM_HAS_EDSP | 191 #define SK_ARM_HAS_EDSP |
192 #endif | 192 #endif |
193 #endif | 193 #endif |
194 #endif | 194 #endif |
195 | 195 |
196 ////////////////////////////////////////////////////////////////////// | 196 ////////////////////////////////////////////////////////////////////// |
197 | 197 |
198 /** | 198 // TODO(mtklein): propagate this through the codebase and remove |
199 * THUMB is the only known config where we avoid small branches in | 199 #define SK_CPU_HAS_CONDITIONAL_INSTR |
200 * favor of more complex math. | |
201 */ | |
202 #if !(defined(__arm__) && defined(__thumb__)) | |
203 #define SK_CPU_HAS_CONDITIONAL_INSTR | |
204 #endif | |
205 | 200 |
206 ////////////////////////////////////////////////////////////////////// | 201 ////////////////////////////////////////////////////////////////////// |
207 | 202 |
208 #if !defined(SKIA_IMPLEMENTATION) | 203 #if !defined(SKIA_IMPLEMENTATION) |
209 #define SKIA_IMPLEMENTATION 0 | 204 #define SKIA_IMPLEMENTATION 0 |
210 #endif | 205 #endif |
211 | 206 |
212 #if defined(SKIA_DLL) | 207 #if defined(SKIA_DLL) |
213 #if defined(WIN32) | 208 #if defined(WIN32) |
214 #if SKIA_IMPLEMENTATION | 209 #if SKIA_IMPLEMENTATION |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 * | 256 * |
262 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. | 257 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. |
263 */ | 258 */ |
264 #if SK_HAS_ATTRIBUTE(optimize) | 259 #if SK_HAS_ATTRIBUTE(optimize) |
265 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) | 260 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) |
266 #else | 261 #else |
267 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ | 262 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ |
268 #endif | 263 #endif |
269 | 264 |
270 #endif | 265 #endif |
OLD | NEW |