diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-07-17 17:09:19 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-07-21 13:19:10 +0200 |
commit | 81329bc8dc562e663ed3952cfb5ba0e06349f4d5 (patch) | |
tree | a1ed4d0f25837fcbc7ff7f45cacceba4072b4466 /src/gui/painting/qrgba64_p.h | |
parent | 07bef8b3838b0417f2b34eae1c690871737e5719 (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/gui/painting/qrgba64_p.h')
-rw-r--r-- | src/gui/painting/qrgba64_p.h | 4 |
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); |