Fix alignment in qConvertARGB64PMToA2RGB30PM_sse2

_mm_load_si128 requires 16 byte alignment. This crashes on 32 bit Windows
builds.

Change-Id: Ib6c30eba726747bbab56467eada820521981a80c
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
Frederik Gladhorn 2015-10-23 16:28:03 +02:00 committed by Frederik Gladhorn
parent ccca3ffdc2
commit 129d268246

View File

@ -1257,9 +1257,8 @@ static inline void qConvertARGB64PMToA2RGB30PM_sse2(uint *dest, const QRgba64 *b
const __m128i cmask = _mm_set1_epi32(0x000003ff);
int i = 0;
__m128i vr, vg, vb, va;
if (i < count && (const uintptr_t)buffer & 0x8) {
for (; i < count && (const uintptr_t)buffer & 0xF; ++i) {
*dest++ = qConvertRgb64ToRgb30<PixelOrder>(*buffer++);
++i;
}
for (; i < count-15; i += 16) {