Fix potentially unaligned 128-bit store/loads

QColorVector is not forced to 128-bit alignment.

Change-Id: Ifacc171296ddddda742d49745372b47585e40802
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
Allan Sandfeld Jensen 2024-03-26 15:36:59 +01:00
parent d89063646e
commit cccda0e62d

View File

@ -104,7 +104,7 @@ public:
v = _mm_or_ps(_mm_and_ps(cmpgt, est), _mm_andnot_ps(cmpgt, kapmul));
#endif
QColorVector out;
_mm_store_ps(&out.x, v);
_mm_storeu_ps(&out.x, v);
const float L = 116.f * out.y - 16.f;
const float a = 500.f * (out.x - out.y);
const float b = 200.f * (out.y - out.z);