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

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

Issue 231223002: Define SK_CPU_X86 on x86 machines. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 8 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/SkXfermode.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 /* 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 (defined(__sh__) && defined(__BIG_ENDIAN__)) || \ 101 (defined(__sh__) && defined(__BIG_ENDIAN__)) || \
102 (defined(__ia64) && defined(__BIG_ENDIAN__)) 102 (defined(__ia64) && defined(__BIG_ENDIAN__))
103 #define SK_CPU_BENDIAN 103 #define SK_CPU_BENDIAN
104 #else 104 #else
105 #define SK_CPU_LENDIAN 105 #define SK_CPU_LENDIAN
106 #endif 106 #endif
107 #endif 107 #endif
108 108
109 ////////////////////////////////////////////////////////////////////// 109 //////////////////////////////////////////////////////////////////////
110 110
111 #if defined(__i386) || defined(_M_IX86) || defined(__x86_64__) || defined(_M_X6 4)
112 #define SK_CPU_X86 1
113 #endif
114
111 /** 115 /**
112 * SK_CPU_SSE_LEVEL 116 * SK_CPU_SSE_LEVEL
113 * 117 *
114 * If defined, SK_CPU_SSE_LEVEL should be set to the highest supported level. 118 * If defined, SK_CPU_SSE_LEVEL should be set to the highest supported level.
115 * On non-intel CPU this should be undefined. 119 * On non-intel CPU this should be undefined.
116 */ 120 */
117 121
118 #define SK_CPU_SSE_LEVEL_SSE1 10 122 #define SK_CPU_SSE_LEVEL_SSE1 10
119 #define SK_CPU_SSE_LEVEL_SSE2 20 123 #define SK_CPU_SSE_LEVEL_SSE2 20
120 #define SK_CPU_SSE_LEVEL_SSE3 30 124 #define SK_CPU_SSE_LEVEL_SSE3 30
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 * 247 *
244 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. 248 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute.
245 */ 249 */
246 #if SK_HAS_ATTRIBUTE(optimize) 250 #if SK_HAS_ATTRIBUTE(optimize)
247 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) 251 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1")))
248 #else 252 #else
249 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ 253 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */
250 #endif 254 #endif
251 255
252 #endif 256 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkXfermode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698