diff options
author | Joerg Mayer <jmayer@loplof.de> | 2014-06-13 17:59:02 +0200 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2014-06-14 06:44:15 +0000 |
commit | 935280317a88223312709e93d428e586a6cce9ef (patch) | |
tree | 954fac9628b29701a039b8f6e6cc70e69e24d6ae /wsutil | |
parent | a4a7d2cfec9a1ac89a5d9c2ae130721fdc5bad9b (diff) |
Backport autofoo simd optimization
Change-Id: I5d58154bf8266eabedf550b54f18845612f514c6
Reviewed-on: https://code.wireshark.org/review/2206
Reviewed-by: Jörg Mayer <jmayer@loplof.de>
Diffstat (limited to 'wsutil')
-rw-r--r-- | wsutil/CMakeLists.txt | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/wsutil/CMakeLists.txt b/wsutil/CMakeLists.txt index c6090e6701..ab4dfd83cc 100644 --- a/wsutil/CMakeLists.txt +++ b/wsutil/CMakeLists.txt @@ -21,7 +21,7 @@ include(UseABICheck) -IF(WIN32) +if(WIN32) set(WSUTIL_PLATFORM_FILES file_util.c inet_aton.c @@ -32,6 +32,12 @@ IF(WIN32) ) ENDIF(WIN32) +if(HAVE_SSE4_2) + set( WSUTIL_SSE42_FILES + ws_mempbrk_sse42.c + ) +endif() + set(WSUTIL_FILES adler32.c aes.c @@ -76,6 +82,7 @@ set(WSUTIL_FILES nghttp2/nghttp2_hd_huffman_data.c nghttp2/nghttp2_helper.c ${WSUTIL_PLATFORM_FILES} + ${WSUTIL_SSE42_FILES} ) set(wsutil_LIBS @@ -99,6 +106,13 @@ if (WERROR) COMPILE_FLAGS -Werror ) endif() +if (HAVE_SSE4_2) + set_source_files_properties( + ${WSUTIL_SSE42_FILES} + PROPERTIES + COMPILE_FLAGS -msse4.2 + ) +endif() add_library(wsutil ${LINK_MODE_LIB} ${WSUTIL_FILES} |