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

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

Issue 1020963002: Specialize Sk2d for ARM64 (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Avoid use of vset[q]_lane, instead intializing vectors directly. Created 5 years, 9 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/Sk2x.h » ('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 /* 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 // All 64-bit ARM chips have NEON. Many 32-bit ARM chips do too.
201 // TODO: Why don't we want NEON on iOS?
202 #if !defined(SK_ARM_HAS_NEON) && !defined(SK_BUILD_FOR_IOS) && \
203 (defined(SK_CPU_ARM64) || defined(__ARM_NEON__))
204 #define SK_ARM_HAS_NEON
205 #endif
206
200 ////////////////////////////////////////////////////////////////////// 207 //////////////////////////////////////////////////////////////////////
201 208
202 #if !defined(SKIA_IMPLEMENTATION) 209 #if !defined(SKIA_IMPLEMENTATION)
203 #define SKIA_IMPLEMENTATION 0 210 #define SKIA_IMPLEMENTATION 0
204 #endif 211 #endif
205 212
206 #if defined(SKIA_DLL) 213 #if defined(SKIA_DLL)
207 #if defined(WIN32) 214 #if defined(WIN32)
208 #if SKIA_IMPLEMENTATION 215 #if SKIA_IMPLEMENTATION
209 #define SK_API __declspec(dllexport) 216 #define SK_API __declspec(dllexport)
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 * 262 *
256 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. 263 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute.
257 */ 264 */
258 #if SK_HAS_ATTRIBUTE(optimize) 265 #if SK_HAS_ATTRIBUTE(optimize)
259 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) 266 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1")))
260 #else 267 #else
261 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ 268 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */
262 #endif 269 #endif
263 270
264 #endif 271 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/Sk2x.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698