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

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

Issue 153093004: Add ifdef to avoid compiler warnings for VS checks (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 10 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 | no next file » | 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 /* 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_SSE2 120 #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_SSE2
121 #elif defined(__SSE3__) 121 #elif defined(__SSE3__)
122 #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_SSE3 122 #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_SSE3
123 #elif defined(__SSSE3__) 123 #elif defined(__SSSE3__)
124 #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_SSSE3 124 #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_SSSE3
125 #endif 125 #endif
126 #endif 126 #endif
127 127
128 // Are we in VisualStudio? 128 // Are we in VisualStudio?
129 #ifndef SK_CPU_SSE_LEVEL 129 #ifndef SK_CPU_SSE_LEVEL
130 #if _M_IX86_FP == 1 130 #if defined (_M_IX86_FP)
131 #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_SSE1 131 #if _M_IX86_FP == 1
132 #elif _M_IX86_FP >= 2 132 #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_SSE1
133 #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_SSE2 133 #elif _M_IX86_FP >= 2
134 #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_SSE2
135 #endif
134 #endif 136 #endif
135 #endif 137 #endif
136 138
137 // 64bit intel guarantees at least SSE2 139 // 64bit intel guarantees at least SSE2
138 #if defined(__x86_64__) || defined(_WIN64) 140 #if defined(__x86_64__) || defined(_WIN64)
139 #if !defined(SK_CPU_SSE_LEVEL) || (SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSE2) 141 #if !defined(SK_CPU_SSE_LEVEL) || (SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSE2)
140 #undef SK_CPU_SSE_LEVEL 142 #undef SK_CPU_SSE_LEVEL
141 #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_SSE2 143 #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_SSE2
142 #endif 144 #endif
143 #endif 145 #endif
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 * 242 *
241 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. 243 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute.
242 */ 244 */
243 #if SK_HAS_ATTRIBUTE(optimize) 245 #if SK_HAS_ATTRIBUTE(optimize)
244 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) 246 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1")))
245 #else 247 #else
246 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ 248 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */
247 #endif 249 #endif
248 250
249 #endif 251 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698