summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-07-17 17:09:19 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-07-21 13:19:10 +0200
commit81329bc8dc562e663ed3952cfb5ba0e06349f4d5 (patch)
treea1ed4d0f25837fcbc7ff7f45cacceba4072b4466 /src
parent07bef8b3838b0417f2b34eae1c690871737e5719 (diff)
Fix SSE4 instruction leak in GCC10 debug builds
toArgb32 was leaking an SSE4 instruction when not inlined. Pick-to: 5.15 Change-Id: I5df87bc7343f4ec40881a0aedd6f066323143817 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/gui/painting/qrgba64_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/painting/qrgba64_p.h b/src/gui/painting/qrgba64_p.h
index d145dbfbea..0a19604c5d 100644
--- a/src/gui/painting/qrgba64_p.h
+++ b/src/gui/painting/qrgba64_p.h
@@ -195,7 +195,7 @@ Q_ALWAYS_INLINE uint toArgb32(uint16x4_t v)
}
#endif
-inline uint toArgb32(QRgba64 rgba64)
+Q_ALWAYS_INLINE uint toArgb32(QRgba64 rgba64)
{
#if defined __SSE2__
__m128i v = _mm_loadl_epi64((const __m128i *)&rgba64);
@@ -215,7 +215,7 @@ inline uint toArgb32(QRgba64 rgba64)
#endif
}
-inline uint toRgba8888(QRgba64 rgba64)
+Q_ALWAYS_INLINE uint toRgba8888(QRgba64 rgba64)
{
#if defined __SSE2__
__m128i v = _mm_loadl_epi64((const __m128i *)&rgba64);