mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
Get code to fully compile in C++.
Change-Id: I6d8490c8c9b955d90dcc89ee8a9cf29ca0f93b08
This commit is contained in:
parent
250c358662
commit
7c2779e95a
@ -431,9 +431,9 @@ static void BundleColorMap_SSE2(const uint8_t* const row, int width, int xbits,
|
||||
// 000a000b000c000d | (where a/b/c/d are 2 bits).
|
||||
const __m128i in = _mm_loadu_si128((const __m128i*)&row[x]);
|
||||
const __m128i mul = _mm_mullo_epi16(in, mul_cst); // 00ab00b000cd00d0
|
||||
const __m128i and = _mm_and_si128(mul, mask_mul); // 00ab000000cd0000
|
||||
const __m128i shift = _mm_srli_epi32(and, 12); // 00000000ab000000
|
||||
const __m128i pack = _mm_or_si128(shift, and); // 00000000abcd0000
|
||||
const __m128i tmp = _mm_and_si128(mul, mask_mul); // 00ab000000cd0000
|
||||
const __m128i shift = _mm_srli_epi32(tmp, 12); // 00000000ab000000
|
||||
const __m128i pack = _mm_or_si128(shift, tmp); // 00000000abcd0000
|
||||
// Convert to 0xff00**00.
|
||||
const __m128i res = _mm_or_si128(pack, mask_or);
|
||||
_mm_storeu_si128((__m128i*)dst, res);
|
||||
|
Loading…
Reference in New Issue
Block a user