OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 // IWYU pragma: private, include "SkTypes.h" | 8 // IWYU pragma: private, include "SkTypes.h" |
9 | 9 |
10 #ifndef SkPostConfig_DEFINED | 10 #ifndef SkPostConfig_DEFINED |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 * SK_ALWAYS_INLINE void someMethod() { ... } // should always be inlined | 289 * SK_ALWAYS_INLINE void someMethod() { ... } // should always be inlined |
290 */ | 290 */ |
291 #if !defined(SK_ALWAYS_INLINE) | 291 #if !defined(SK_ALWAYS_INLINE) |
292 # if defined(SK_BUILD_FOR_WIN) | 292 # if defined(SK_BUILD_FOR_WIN) |
293 # define SK_ALWAYS_INLINE __forceinline | 293 # define SK_ALWAYS_INLINE __forceinline |
294 # else | 294 # else |
295 # define SK_ALWAYS_INLINE SK_ATTRIBUTE(always_inline) inline | 295 # define SK_ALWAYS_INLINE SK_ATTRIBUTE(always_inline) inline |
296 # endif | 296 # endif |
297 #endif | 297 #endif |
298 | 298 |
299 #if defined(SK_BUILD_FOR_WIN) | 299 #if defined(SK_BUILD_FOR_WIN) && SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 |
300 #define SK_VECTORCALL __vectorcall | 300 #define SK_VECTORCALL __vectorcall |
301 #elif defined(SK_CPU_ARM32) | 301 #elif defined(SK_CPU_ARM32) |
302 #define SK_VECTORCALL __attribute__((pcs("aapcs-vfp"))) | 302 #define SK_VECTORCALL __attribute__((pcs("aapcs-vfp"))) |
303 #else | 303 #else |
304 #define SK_VECTORCALL | 304 #define SK_VECTORCALL |
305 #endif | 305 #endif |
306 | 306 |
307 ////////////////////////////////////////////////////////////////////// | 307 ////////////////////////////////////////////////////////////////////// |
308 | 308 |
309 #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 | 309 #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 # define SK_GAMMA_EXPONENT (2.2f) | 363 # define SK_GAMMA_EXPONENT (2.2f) |
364 #endif | 364 #endif |
365 | 365 |
366 ////////////////////////////////////////////////////////////////////// | 366 ////////////////////////////////////////////////////////////////////// |
367 | 367 |
368 #ifndef GR_TEST_UTILS | 368 #ifndef GR_TEST_UTILS |
369 # define GR_TEST_UTILS 1 | 369 # define GR_TEST_UTILS 1 |
370 #endif | 370 #endif |
371 | 371 |
372 #endif // SkPostConfig_DEFINED | 372 #endif // SkPostConfig_DEFINED |
OLD | NEW |