diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-10 18:44:23 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-10 18:44:23 +0100 |
commit | ac683301302ef02eeb5045e9a7e80587ae9760dd (patch) | |
tree | cbdaa505744c1eb2a5a2fb2265d29fa92f0f3cfd /thirdparty/libwebp/src/dsp/lossless_sse41.c | |
parent | e52a2e3864741bba58ba07e89220830201b54266 (diff) | |
parent | d8e8517d1174e8593338329a0535da178444817a (diff) |
Merge pull request #72045 from DeeJayLSP/update_libwebp
libwebp: Sync with upstream 1.3.0
Diffstat (limited to 'thirdparty/libwebp/src/dsp/lossless_sse41.c')
-rw-r--r-- | thirdparty/libwebp/src/dsp/lossless_sse41.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/thirdparty/libwebp/src/dsp/lossless_sse41.c b/thirdparty/libwebp/src/dsp/lossless_sse41.c index b0d6daa7fe..bb7ce7611f 100644 --- a/thirdparty/libwebp/src/dsp/lossless_sse41.c +++ b/thirdparty/libwebp/src/dsp/lossless_sse41.c @@ -25,11 +25,12 @@ static void TransformColorInverse_SSE41(const VP8LMultipliers* const m, int num_pixels, uint32_t* dst) { // sign-extended multiplying constants, pre-shifted by 5. #define CST(X) (((int16_t)(m->X << 8)) >> 5) // sign-extend - const __m128i mults_rb = _mm_set1_epi32((uint32_t)CST(green_to_red_) << 16 | - (CST(green_to_blue_) & 0xffff)); + const __m128i mults_rb = + _mm_set1_epi32((int)((uint32_t)CST(green_to_red_) << 16 | + (CST(green_to_blue_) & 0xffff))); const __m128i mults_b2 = _mm_set1_epi32(CST(red_to_blue_)); #undef CST - const __m128i mask_ag = _mm_set1_epi32(0xff00ff00); + const __m128i mask_ag = _mm_set1_epi32((int)0xff00ff00); const __m128i perm1 = _mm_setr_epi8(-1, 1, -1, 1, -1, 5, -1, 5, -1, 9, -1, 9, -1, 13, -1, 13); const __m128i perm2 = _mm_setr_epi8(-1, 2, -1, -1, -1, 6, -1, -1, |