From e656ab685c50434e0e720e3827cc1fba545056dc Mon Sep 17 00:00:00 2001 From: Arthur Passos Date: Tue, 4 Apr 2023 08:16:55 -0300 Subject: [PATCH] fix sse42 not defined build --- base/base/find_symbols.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base/base/find_symbols.h b/base/base/find_symbols.h index 27eed9079bf..56386080b49 100644 --- a/base/base/find_symbols.h +++ b/base/base/find_symbols.h @@ -287,11 +287,12 @@ inline const char * find_first_symbols_sse42(const char * const begin, const cha { const char * pos = begin; + const auto num_chars = symbols.str.size(); + #if defined(__SSE4_2__) constexpr int mode = _SIDD_UBYTE_OPS | _SIDD_CMP_EQUAL_ANY | _SIDD_LEAST_SIGNIFICANT; const __m128i set = symbols.simd_vector; - const auto num_chars = symbols.str.size(); for (; pos + 15 < end; pos += 16) {