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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 #if !defined(SK_CPU_BENDIAN) && !defined(SK_CPU_LENDIAN) | 101 #if !defined(SK_CPU_BENDIAN) && !defined(SK_CPU_LENDIAN) |
102 #if defined (__ppc__) || defined(__ppc64__) | 102 #if defined (__ppc__) || defined(__ppc64__) |
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 #ifndef SK_MMAP_SUPPORT |
| 112 #ifdef SK_BUILD_FOR_WIN32 |
| 113 // by default, if we're windows, we assume we don't have mmap |
| 114 #define SK_MMAP_SUPPORT 0 |
| 115 #else |
| 116 #define SK_MMAP_SUPPORT 1 |
| 117 #endif |
| 118 #endif |
| 119 |
| 120 ////////////////////////////////////////////////////////////////////// |
| 121 |
111 /** | 122 /** |
112 * SK_CPU_SSE_LEVEL | 123 * SK_CPU_SSE_LEVEL |
113 * | 124 * |
114 * If defined, SK_CPU_SSE_LEVEL should be set to the highest supported level. | 125 * If defined, SK_CPU_SSE_LEVEL should be set to the highest supported level. |
115 * On non-intel CPU this should be undefined. | 126 * On non-intel CPU this should be undefined. |
116 */ | 127 */ |
117 | 128 |
118 #define SK_CPU_SSE_LEVEL_SSE1 10 | 129 #define SK_CPU_SSE_LEVEL_SSE1 10 |
119 #define SK_CPU_SSE_LEVEL_SSE2 20 | 130 #define SK_CPU_SSE_LEVEL_SSE2 20 |
120 #define SK_CPU_SSE_LEVEL_SSE3 30 | 131 #define SK_CPU_SSE_LEVEL_SSE3 30 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 * | 261 * |
251 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. | 262 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. |
252 */ | 263 */ |
253 #if SK_HAS_ATTRIBUTE(optimize) | 264 #if SK_HAS_ATTRIBUTE(optimize) |
254 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) | 265 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) |
255 #else | 266 #else |
256 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ | 267 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ |
257 #endif | 268 #endif |
258 | 269 |
259 #endif | 270 #endif |
OLD | NEW |