diff options
author | Matthew Vernon <matthew@debian.org> | 2019-03-25 19:55:21 +0000 |
---|---|---|
committer | Matthew Vernon <matthew@debian.org> | 2019-03-25 19:55:21 +0000 |
commit | 6182fda16b1f54920d4a4e12b128cc330e90fbe0 (patch) | |
tree | 531a96800f4563d7e2d0624f08c73f50170b498d | |
parent | d4ef411c68cc4d66211286266fcb487d1c285ad5 (diff) |
only use SSE2 instructions on CPUs that support it (Closes: #925360)
This is a patch from Guillem Jover <guillem@debian.org>.
-rw-r--r-- | src/pcre2_jit_compile.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pcre2_jit_compile.c b/src/pcre2_jit_compile.c index 32e985b..eea9591 100644 --- a/src/pcre2_jit_compile.c +++ b/src/pcre2_jit_compile.c @@ -5120,8 +5120,9 @@ for (i = 0; i < max; i++) } #if (defined SLJIT_CONFIG_X86 && SLJIT_CONFIG_X86) && !(defined SUPPORT_VALGRIND) && !(defined _WIN64) -if (check_fast_forward_char_pair_sse2(common, chars, max)) - return TRUE; +if (sljit_has_cpu_feature(SLJIT_HAS_SSE2)) + if (check_fast_forward_char_pair_sse2(common, chars, max)) + return TRUE; #endif in_range = FALSE; |