fix sse42 not defined build

This commit is contained in:
Arthur Passos 2023-04-04 08:16:55 -03:00
parent 22367f84e6
commit e656ab685c

View File

@ -287,11 +287,12 @@ inline const char * find_first_symbols_sse42(const char * const begin, const cha
{ {
const char * pos = begin; const char * pos = begin;
const auto num_chars = symbols.str.size();
#if defined(__SSE4_2__) #if defined(__SSE4_2__)
constexpr int mode = _SIDD_UBYTE_OPS | _SIDD_CMP_EQUAL_ANY | _SIDD_LEAST_SIGNIFICANT; constexpr int mode = _SIDD_UBYTE_OPS | _SIDD_CMP_EQUAL_ANY | _SIDD_LEAST_SIGNIFICANT;
const __m128i set = symbols.simd_vector; const __m128i set = symbols.simd_vector;
const auto num_chars = symbols.str.size();
for (; pos + 15 < end; pos += 16) for (; pos + 15 < end; pos += 16)
{ {