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

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

Issue 174603002: Add more big endian platforms (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « AUTHORS ('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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 #define SK_RESTRICT __restrict__ 85 #define SK_RESTRICT __restrict__
86 #endif 86 #endif
87 87
88 #if !defined(SK_WARN_UNUSED_RESULT) 88 #if !defined(SK_WARN_UNUSED_RESULT)
89 #define SK_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) 89 #define SK_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
90 #endif 90 #endif
91 91
92 ////////////////////////////////////////////////////////////////////// 92 //////////////////////////////////////////////////////////////////////
93 93
94 #if !defined(SK_CPU_BENDIAN) && !defined(SK_CPU_LENDIAN) 94 #if !defined(SK_CPU_BENDIAN) && !defined(SK_CPU_LENDIAN)
95 #if defined (__ppc__) || defined(__PPC__) || defined(__ppc64__) \ 95 #if defined(__sparc) || defined(__sparc__) || \
96 || defined(__PPC64__) 96 defined(_POWER) || defined(__powerpc__) || \
97 #define SK_CPU_BENDIAN 97 defined(__ppc__) || defined(__hppa) || \
98 defined(__PPC__) || defined(__PPC64__) || \
99 defined(_MIPSEB) || defined(__ARMEB__) || \
100 defined(__s390__) || \
101 (defined(__sh__) && defined(__BIG_ENDIAN__)) || \
102 (defined(__ia64) && defined(__BIG_ENDIAN__))
103 #define SK_CPU_BENDIAN
98 #else 104 #else
99 #define SK_CPU_LENDIAN 105 #define SK_CPU_LENDIAN
100 #endif 106 #endif
101 #endif 107 #endif
102 108
103 ////////////////////////////////////////////////////////////////////// 109 //////////////////////////////////////////////////////////////////////
104 110
105 /** 111 /**
106 * SK_CPU_SSE_LEVEL 112 * SK_CPU_SSE_LEVEL
107 * 113 *
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 * 238 *
233 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. 239 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute.
234 */ 240 */
235 #if SK_HAS_ATTRIBUTE(optimize) 241 #if SK_HAS_ATTRIBUTE(optimize)
236 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) 242 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1")))
237 #else 243 #else
238 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ 244 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */
239 #endif 245 #endif
240 246
241 #endif 247 #endif
OLDNEW
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698