OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |