OLD | NEW |
| 1 /* |
| 2 * Copyright 2015 Google Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
| 7 |
1 #include "SkBlitRow_opts_SSE4.h" | 8 #include "SkBlitRow_opts_SSE4.h" |
2 | 9 |
3 // Some compilers can't compile SSSE3 or SSE4 intrinsics. We give them stub met
hods. | 10 // Some compilers can't compile SSSE3 or SSE4 intrinsics. We give them stub met
hods. |
4 // The stubs should never be called, so we make them crash just to confirm that. | 11 // The stubs should never be called, so we make them crash just to confirm that. |
5 #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSE41 | 12 #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSE41 |
6 void S32A_Opaque_BlitRow32_SSE4(SkPMColor* SK_RESTRICT, const SkPMColor* SK_REST
RICT, int, U8CPU) { | 13 void S32A_Opaque_BlitRow32_SSE4(SkPMColor* SK_RESTRICT, const SkPMColor* SK_REST
RICT, int, U8CPU) { |
7 sk_throw(); | 14 sk_throw(); |
8 } | 15 } |
9 | 16 |
10 #else | 17 #else |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // Wrap up the last <= 15 pixels. | 62 // Wrap up the last <= 15 pixels. |
56 for (int i = count16*16; i < count; i++) { | 63 for (int i = count16*16; i < count; i++) { |
57 // This check is not really necessarily, but it prevents pointless autov
ectorization. | 64 // This check is not really necessarily, but it prevents pointless autov
ectorization. |
58 if (src[i] & 0xFF000000) { | 65 if (src[i] & 0xFF000000) { |
59 dst[i] = SkPMSrcOver(src[i], dst[i]); | 66 dst[i] = SkPMSrcOver(src[i], dst[i]); |
60 } | 67 } |
61 } | 68 } |
62 } | 69 } |
63 | 70 |
64 #endif | 71 #endif |
OLD | NEW |