Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Side by Side Diff: include/core/SkPostConfig.h

Issue 2126253002: centralize VECTORCALL as SK_VECTORCALL (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: typo Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/core/SkLinearBitmapPipeline.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/core/SkLinearBitmapPipeline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698