aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/opts/SkOpts_sse41.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/opts/SkOpts_sse41.cpp')
-rw-r--r--src/opts/SkOpts_sse41.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/opts/SkOpts_sse41.cpp b/src/opts/SkOpts_sse41.cpp
index f097e56c5e..7a76081e7a 100644
--- a/src/opts/SkOpts_sse41.cpp
+++ b/src/opts/SkOpts_sse41.cpp
@@ -50,8 +50,7 @@ static m64i next1(const uint32_t*& ptr) {
// xyzw -> xxxx yyyy zzzz wwww
static __m128i replicate_coverage(__m128i xyzw) {
- const uint8_t mask[] = { 0,0,0,0, 1,1,1,1, 2,2,2,2, 3,3,3,3 };
- return _mm_shuffle_epi8(xyzw, _mm_load_si128((const __m128i*)mask));
+ return _mm_shuffle_epi8(xyzw, _mm_setr_epi8(0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3));
}
static __m128i next4(const uint8_t*& ptr) {