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

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

Issue 433513004: Update NEON compiler defines to use SK_ prefix (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 4 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 | « gyp/common_variables.gypi ('k') | 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 #define SK_ARM_HAS_EDSP 190 #define SK_ARM_HAS_EDSP
191 #endif 191 #endif
192 #endif 192 #endif
193 #endif 193 #endif
194 194
195 // Disable ARM64 optimizations for iOS due to complications regarding gyp and iO S. 195 // Disable ARM64 optimizations for iOS due to complications regarding gyp and iO S.
196 #if defined(__aarch64__) && !defined(SK_BUILD_FOR_IOS) 196 #if defined(__aarch64__) && !defined(SK_BUILD_FOR_IOS)
197 #define SK_CPU_ARM64 197 #define SK_CPU_ARM64
198 #endif 198 #endif
199 199
200 #if !defined(SK_ARM_HAS_NEON) && defined(__ARM_NEON__)
201 #define SK_ARM_HAS_NEON
202 #endif
203
204 ////////////////////////////////////////////////////////////////////// 200 //////////////////////////////////////////////////////////////////////
205 201
206 #if !defined(SKIA_IMPLEMENTATION) 202 #if !defined(SKIA_IMPLEMENTATION)
207 #define SKIA_IMPLEMENTATION 0 203 #define SKIA_IMPLEMENTATION 0
208 #endif 204 #endif
209 205
210 #if defined(SKIA_DLL) 206 #if defined(SKIA_DLL)
211 #if defined(WIN32) 207 #if defined(WIN32)
212 #if SKIA_IMPLEMENTATION 208 #if SKIA_IMPLEMENTATION
213 #define SK_API __declspec(dllexport) 209 #define SK_API __declspec(dllexport)
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 * 255 *
260 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. 256 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute.
261 */ 257 */
262 #if SK_HAS_ATTRIBUTE(optimize) 258 #if SK_HAS_ATTRIBUTE(optimize)
263 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) 259 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1")))
264 #else 260 #else
265 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ 261 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */
266 #endif 262 #endif
267 263
268 #endif 264 #endif
OLDNEW
« no previous file with comments | « gyp/common_variables.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698