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 // TODO(mtklein): propagate this through the codebase and remove | |
199 #define SK_CPU_HAS_CONDITIONAL_INSTR | |
200 | |
201 ////////////////////////////////////////////////////////////////////// | |
202 | |
203 #if !defined(SKIA_IMPLEMENTATION) | 198 #if !defined(SKIA_IMPLEMENTATION) |
204 #define SKIA_IMPLEMENTATION 0 | 199 #define SKIA_IMPLEMENTATION 0 |
205 #endif | 200 #endif |
206 | 201 |
207 #if defined(SKIA_DLL) | 202 #if defined(SKIA_DLL) |
208 #if defined(WIN32) | 203 #if defined(WIN32) |
209 #if SKIA_IMPLEMENTATION | 204 #if SKIA_IMPLEMENTATION |
210 #define SK_API __declspec(dllexport) | 205 #define SK_API __declspec(dllexport) |
211 #else | 206 #else |
212 #define SK_API __declspec(dllimport) | 207 #define SK_API __declspec(dllimport) |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 * | 251 * |
257 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. | 252 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. |
258 */ | 253 */ |
259 #if SK_HAS_ATTRIBUTE(optimize) | 254 #if SK_HAS_ATTRIBUTE(optimize) |
260 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) | 255 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) |
261 #else | 256 #else |
262 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ | 257 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ |
263 #endif | 258 #endif |
264 | 259 |
265 #endif | 260 #endif |
OLD | NEW |