diff --git a/src/gui/painting/qdrawingprimitive_sse2_p.h b/src/gui/painting/qdrawingprimitive_sse2_p.h index 22d1205074..aded999cdd 100644 --- a/src/gui/painting/qdrawingprimitive_sse2_p.h +++ b/src/gui/painting/qdrawingprimitive_sse2_p.h @@ -245,8 +245,7 @@ inline QRgb qUnpremultiply_sse4(QRgb p) const uint invAlpha = qt_inv_premul_factor[alpha]; const __m128i via = _mm_set1_epi32(invAlpha); const __m128i vr = _mm_set1_epi32(0x8000); - __m128i vl = _mm_unpacklo_epi8(_mm_cvtsi32_si128(p), _mm_setzero_si128()); - vl = _mm_unpacklo_epi16(vl, _mm_setzero_si128()); + __m128i vl = _mm_cvtepu8_epi32(_mm_cvtsi32_si128(p)); vl = _mm_mullo_epi32(vl, via); vl = _mm_add_epi32(vl, vr); vl = _mm_srai_epi32(vl, 16);