OLD | NEW |
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 SkPostConfig_DEFINED | 10 #ifndef SkPostConfig_DEFINED |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 #define SK_VECTORCALL __vectorcall | 289 #define SK_VECTORCALL __vectorcall |
290 #elif defined(SK_CPU_ARM32) | 290 #elif defined(SK_CPU_ARM32) |
291 #define SK_VECTORCALL __attribute__((pcs("aapcs-vfp"))) | 291 #define SK_VECTORCALL __attribute__((pcs("aapcs-vfp"))) |
292 #else | 292 #else |
293 #define SK_VECTORCALL | 293 #define SK_VECTORCALL |
294 #endif | 294 #endif |
295 | 295 |
296 ////////////////////////////////////////////////////////////////////// | 296 ////////////////////////////////////////////////////////////////////// |
297 | 297 |
298 #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 | 298 #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 |
299 #define SK_PREFETCH(ptr) _mm_prefetch(ptr, _MM_HINT_T0) | 299 #define SK_PREFETCH(ptr) _mm_prefetch(reinterpret_cast<const char*>(pt
r), _MM_HINT_T0) |
300 #define SK_WRITE_PREFETCH(ptr) _mm_prefetch(ptr, _MM_HINT_T0) | 300 #define SK_WRITE_PREFETCH(ptr) _mm_prefetch(reinterpret_cast<const char*>(pt
r), _MM_HINT_T0) |
301 #elif defined(__GNUC__) | 301 #elif defined(__GNUC__) |
302 #define SK_PREFETCH(ptr) __builtin_prefetch(ptr) | 302 #define SK_PREFETCH(ptr) __builtin_prefetch(ptr) |
303 #define SK_WRITE_PREFETCH(ptr) __builtin_prefetch(ptr, 1) | 303 #define SK_WRITE_PREFETCH(ptr) __builtin_prefetch(ptr, 1) |
304 #else | 304 #else |
305 #define SK_PREFETCH(ptr) | 305 #define SK_PREFETCH(ptr) |
306 #define SK_WRITE_PREFETCH(ptr) | 306 #define SK_WRITE_PREFETCH(ptr) |
307 #endif | 307 #endif |
308 | 308 |
309 ////////////////////////////////////////////////////////////////////// | 309 ////////////////////////////////////////////////////////////////////// |
310 | 310 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 # define SK_GAMMA_EXPONENT (2.2f) | 352 # define SK_GAMMA_EXPONENT (2.2f) |
353 #endif | 353 #endif |
354 | 354 |
355 ////////////////////////////////////////////////////////////////////// | 355 ////////////////////////////////////////////////////////////////////// |
356 | 356 |
357 #ifndef GR_TEST_UTILS | 357 #ifndef GR_TEST_UTILS |
358 # define GR_TEST_UTILS 1 | 358 # define GR_TEST_UTILS 1 |
359 #endif | 359 #endif |
360 | 360 |
361 #endif // SkPostConfig_DEFINED | 361 #endif // SkPostConfig_DEFINED |
OLD | NEW |