Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright 2014 The Android Open Source Project | 2 * Copyright 2014 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 #ifndef SkBlitRow_opts_SSE4_DEFINED | 8 #ifndef SkBlitRow_opts_SSE4_DEFINED |
| 9 #define SkBlitRow_opts_SSE4_DEFINED | 9 #define SkBlitRow_opts_SSE4_DEFINED |
| 10 | 10 |
| 11 #include "SkBlitRow.h" | 11 #include "SkBlitRow.h" |
| 12 | 12 |
| 13 #ifdef CRBUG_399842_FIXED | 13 #ifdef CRBUG_399842_FIXED |
|
mtklein
2014/11/26 14:34:50
Are you certain the change you're making here unbl
| |
| 14 | 14 |
| 15 /* Check if we are able to build assembly code, GCC/AT&T syntax: | 15 /* Check if we are able to build assembly code, GCC/AT&T syntax: |
| 16 * 1) Clang and GCC are generally OK. OS X's old LLVM-GCC 4.2 can't handle it; | 16 * 1) Clang and GCC are generally OK. OS X's old LLVM-GCC 4.2 can't handle it; |
| 17 * 2) We're intentionally not linking this in even when supported (Clang) on Wi ndows; | 17 * 2) We're intentionally not linking this in even when supported (Clang) on Wi ndows; |
| 18 * 3) MemorySanitizer cannot instrument assembly at all. | 18 * 3) MemorySanitizer cannot instrument assembly at all. |
| 19 * 4) For other systems with old GCC 4.2 that can't handle it (e.g. OpenBSD). | |
| 19 */ | 20 */ |
| 20 #if /* 1)*/ (defined(__clang__) || (defined(__GNUC__) && !defined(SK_BUILD_FOR_M AC))) \ | 21 #if /* 1)*/ (defined(__clang__) || (defined(__GNUC__) && !defined(SK_BUILD_FOR_M AC))) \ |
| 21 /* 2)*/ && !defined(SK_BUILD_FOR_WIN) \ | 22 /* 2)*/ && !defined(SK_BUILD_FOR_WIN) \ |
| 22 /* 3)*/ && !defined(MEMORY_SANITIZER) | 23 /* 3)*/ && !defined(MEMORY_SANITIZER) \ |
| 24 /* 4)*/ && SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE41 | |
|
mtklein
2014/11/26 14:34:50
If I'm thinking right, adding this check would res
| |
| 23 extern "C" void S32A_Opaque_BlitRow32_SSE4_asm(SkPMColor* SK_RESTRICT dst, | 25 extern "C" void S32A_Opaque_BlitRow32_SSE4_asm(SkPMColor* SK_RESTRICT dst, |
| 24 const SkPMColor* SK_RESTRICT src, | 26 const SkPMColor* SK_RESTRICT src, |
| 25 int count, U8CPU alpha); | 27 int count, U8CPU alpha); |
| 26 | 28 |
| 27 #define SK_ATT_ASM_SUPPORTED | 29 #define SK_ATT_ASM_SUPPORTED |
| 28 #endif | 30 #endif |
| 29 | 31 |
| 30 #endif // CRBUG_399842_FIXED | 32 #endif // CRBUG_399842_FIXED |
| 31 | 33 |
| 32 #endif | 34 #endif |
| 33 | 35 |
| OLD | NEW |