Fix build error with lambda on GCC 9.2
This patch is specific to the return type of updatePtrSimd function as boolean to avoid the bug of GCC 9.2. Fixes: QTBUG-112920 Pick-to: 6.7 6.6 6.5 Change-Id: I21cb1f6dda34448b2290ab72ec280b6b2a3732c9 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>bb10
parent
9465de9041
commit
b404930e12
|
|
@ -472,7 +472,7 @@ static bool simdTestMask(const char *&ptr, const char *end, quint32 maskval)
|
|||
if constexpr (UseSse4_1) {
|
||||
# ifndef Q_OS_QNX // compiler fails in the code below
|
||||
__m128i mask;
|
||||
auto updatePtrSimd = [&](__m128i data) {
|
||||
auto updatePtrSimd = [&](__m128i data) -> bool {
|
||||
__m128i masked = _mm_and_si128(mask, data);
|
||||
__m128i comparison = _mm_cmpeq_epi16(masked, _mm_setzero_si128());
|
||||
uint result = _mm_movemask_epi8(comparison);
|
||||
|
|
|
|||
Loading…
Reference in New Issue