[Pcre-svn] [1082] code/trunk: Disable SSE2 JIT optimizations…

Inizio della pagina
Delete this message
Autore: Subversion repository
Data:  
To: pcre-svn
Oggetto: [Pcre-svn] [1082] code/trunk: Disable SSE2 JIT optimizations in x86 CPUs when SSE2 is not available.
Revision: 1082
          http://www.exim.org/viewvc/pcre2?view=rev&revision=1082
Author:   zherczeg
Date:     2019-03-25 14:10:24 +0000 (Mon, 25 Mar 2019)
Log Message:
-----------
Disable SSE2 JIT optimizations in x86 CPUs when SSE2 is not available.


Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/src/pcre2_jit_compile.c


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2019-03-11 17:29:08 UTC (rev 1081)
+++ code/trunk/ChangeLog    2019-03-25 14:10:24 UTC (rev 1082)
@@ -146,7 +146,10 @@
 source directory wasn't in the search path for AC_TRY_COMPILE always. Patch
 from Ross Burton.


+36. Disable SSE2 JIT optimizations in x86 CPUs when SSE2 is not available.
+Patch by Guillem Jover.

+
Version 10.32 10-September-2018
-------------------------------


Modified: code/trunk/src/pcre2_jit_compile.c
===================================================================
--- code/trunk/src/pcre2_jit_compile.c    2019-03-11 17:29:08 UTC (rev 1081)
+++ code/trunk/src/pcre2_jit_compile.c    2019-03-25 14:10:24 UTC (rev 1082)
@@ -6268,7 +6268,7 @@
   }


#if (defined SLJIT_CONFIG_X86 && SLJIT_CONFIG_X86) && !(defined SUPPORT_VALGRIND) && !(defined _WIN64)
-if (check_fast_forward_char_pair_sse2(common, chars, max))
+if (sljit_has_cpu_feature(SLJIT_HAS_SSE2) && check_fast_forward_char_pair_sse2(common, chars, max))
return TRUE;
#endif