| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 71 |
| 72 // As usual, there are two ways to increase alignment... the MSVC way and the ev
eryone-else way. | 72 // As usual, there are two ways to increase alignment... the MSVC way and the ev
eryone-else way. |
| 73 #ifndef SK_STRUCT_ALIGN | 73 #ifndef SK_STRUCT_ALIGN |
| 74 #ifdef _MSC_VER | 74 #ifdef _MSC_VER |
| 75 #define SK_STRUCT_ALIGN(N) __declspec(align(N)) | 75 #define SK_STRUCT_ALIGN(N) __declspec(align(N)) |
| 76 #else | 76 #else |
| 77 #define SK_STRUCT_ALIGN(N) __attribute__((aligned(N))) | 77 #define SK_STRUCT_ALIGN(N) __attribute__((aligned(N))) |
| 78 #endif | 78 #endif |
| 79 #endif | 79 #endif |
| 80 | 80 |
| 81 #if defined(_MSC_VER) && SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 |
| 82 #define SK_VECTORCALL __vectorcall |
| 83 #elif defined(SK_CPU_ARM32) && defined(SK_ARM_HAS_NEON) |
| 84 #define SK_VECTORCALL __attribute__((pcs("aapcs-vfp"))) |
| 85 #else |
| 86 #define SK_VECTORCALL |
| 87 #endif |
| 88 |
| 81 #if !defined(SK_SUPPORT_GPU) | 89 #if !defined(SK_SUPPORT_GPU) |
| 82 # define SK_SUPPORT_GPU 1 | 90 # define SK_SUPPORT_GPU 1 |
| 83 #endif | 91 #endif |
| 84 | 92 |
| 85 /** | 93 /** |
| 86 * The clang static analyzer likes to know that when the program is not | 94 * The clang static analyzer likes to know that when the program is not |
| 87 * expected to continue (crash, assertion failure, etc). It will notice that | 95 * expected to continue (crash, assertion failure, etc). It will notice that |
| 88 * some combination of parameters lead to a function call that does not return. | 96 * some combination of parameters lead to a function call that does not return. |
| 89 * It can then make appropriate assumptions about the parameters in code | 97 * It can then make appropriate assumptions about the parameters in code |
| 90 * executed only if the non-returning function was *not* called. | 98 * executed only if the non-returning function was *not* called. |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 | 342 |
| 335 #ifndef SK_HISTOGRAM_BOOLEAN | 343 #ifndef SK_HISTOGRAM_BOOLEAN |
| 336 # define SK_HISTOGRAM_BOOLEAN(name, value) | 344 # define SK_HISTOGRAM_BOOLEAN(name, value) |
| 337 #endif | 345 #endif |
| 338 | 346 |
| 339 #ifndef SK_HISTOGRAM_ENUMERATION | 347 #ifndef SK_HISTOGRAM_ENUMERATION |
| 340 # define SK_HISTOGRAM_ENUMERATION(name, value, boundary_value) | 348 # define SK_HISTOGRAM_ENUMERATION(name, value, boundary_value) |
| 341 #endif | 349 #endif |
| 342 | 350 |
| 343 #endif // SkPostConfig_DEFINED | 351 #endif // SkPostConfig_DEFINED |
| OLD | NEW |