Chromium Code Reviews| Index: src/opts/SkBlitRow_opts_SSE4.h |
| diff --git a/src/opts/SkBlitRow_opts_SSE4.h b/src/opts/SkBlitRow_opts_SSE4.h |
| index 600e669893dd32bb156d3b5cfd2686e50eeb715b..19983b26cc2483e00c0feaace3cc7d78d92ca520 100644 |
| --- a/src/opts/SkBlitRow_opts_SSE4.h |
| +++ b/src/opts/SkBlitRow_opts_SSE4.h |
| @@ -16,10 +16,12 @@ |
| * 1) Clang and GCC are generally OK. OS X's old LLVM-GCC 4.2 can't handle it; |
| * 2) We're intentionally not linking this in even when supported (Clang) on Windows; |
| * 3) MemorySanitizer cannot instrument assembly at all. |
| + * 4) For other systems with old GCC 4.2 that can't handle it (e.g. OpenBSD). |
| */ |
| #if /* 1)*/ (defined(__clang__) || (defined(__GNUC__) && !defined(SK_BUILD_FOR_MAC))) \ |
| /* 2)*/ && !defined(SK_BUILD_FOR_WIN) \ |
| - /* 3)*/ && !defined(MEMORY_SANITIZER) |
| + /* 3)*/ && !defined(MEMORY_SANITIZER) \ |
| + /* 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
|
| extern "C" void S32A_Opaque_BlitRow32_SSE4_asm(SkPMColor* SK_RESTRICT dst, |
| const SkPMColor* SK_RESTRICT src, |
| int count, U8CPU alpha); |