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

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

Issue 1630903004: check for both __ARM_NEON__ and __ARM_NEON (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 4 years, 11 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 * 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 SkPreConfig_DEFINED 10 #ifndef SkPreConfig_DEFINED
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 #endif 186 #endif
187 #endif 187 #endif
188 188
189 // Disable ARM64 optimizations for iOS due to complications regarding gyp and iO S. 189 // Disable ARM64 optimizations for iOS due to complications regarding gyp and iO S.
190 #if defined(__aarch64__) && !defined(SK_BUILD_FOR_IOS) 190 #if defined(__aarch64__) && !defined(SK_BUILD_FOR_IOS)
191 #define SK_CPU_ARM64 191 #define SK_CPU_ARM64
192 #endif 192 #endif
193 193
194 // All 64-bit ARM chips have NEON. Many 32-bit ARM chips do too. 194 // All 64-bit ARM chips have NEON. Many 32-bit ARM chips do too.
195 // TODO: Why don't we want NEON on iOS? 195 // TODO: Why don't we want NEON on iOS?
196 #if !defined(SK_ARM_HAS_NEON) && !defined(SK_BUILD_FOR_IOS) && defined(__ARM_NEO N) 196 #if !defined(SK_ARM_HAS_NEON) && !defined(SK_BUILD_FOR_IOS) && (defined(__ARM_NE ON__) || defined(__ARM_NEON))
197 #define SK_ARM_HAS_NEON 197 #define SK_ARM_HAS_NEON
198 #endif 198 #endif
199 199
200 ////////////////////////////////////////////////////////////////////// 200 //////////////////////////////////////////////////////////////////////
201 201
202 #if !defined(SKIA_IMPLEMENTATION) 202 #if !defined(SKIA_IMPLEMENTATION)
203 #define SKIA_IMPLEMENTATION 0 203 #define SKIA_IMPLEMENTATION 0
204 #endif 204 #endif
205 205
206 #if defined(SKIA_DLL) 206 #if defined(SKIA_DLL)
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 * 255 *
256 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. 256 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute.
257 */ 257 */
258 #if SK_HAS_ATTRIBUTE(optimize) 258 #if SK_HAS_ATTRIBUTE(optimize)
259 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) 259 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1")))
260 #else 260 #else
261 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ 261 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */
262 #endif 262 #endif
263 263
264 #endif 264 #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