diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-02-06 17:04:30 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-02-06 17:04:30 +0000 |
commit | 84a551b5fb0d3c052b7f06a46400cc841ebba7c0 (patch) | |
tree | 134411f8c24c5fa27932ab3b849bec7636b34e1a /src/libcryptobox/CMakeLists.txt | |
parent | ceb87422adb1d3cc36a7e4de9c728299c31f465a (diff) | |
download | rspamd-84a551b5fb0d3c052b7f06a46400cc841ebba7c0.tar.gz rspamd-84a551b5fb0d3c052b7f06a46400cc841ebba7c0.zip |
[Minor] Add sse42 support
Diffstat (limited to 'src/libcryptobox/CMakeLists.txt')
-rw-r--r-- | src/libcryptobox/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcryptobox/CMakeLists.txt b/src/libcryptobox/CMakeLists.txt index 165f9b40f..9cca1b694 100644 --- a/src/libcryptobox/CMakeLists.txt +++ b/src/libcryptobox/CMakeLists.txt @@ -52,6 +52,8 @@ IF("${ARCH}" STREQUAL "x86_64") ASM_OP(HAVE_SSSE3 "ssse3") SET(ASM_CODE "pblendw \$0, %xmm0, %xmm0") ASM_OP(HAVE_SSE41 "sse41") + SET(ASM_CODE "crc32 %eax, %eax") + ASM_OP(HAVE_SSE42 "sse42") if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU") SET(POLYSRC ${POLYSRC} ${CMAKE_CURRENT_SOURCE_DIR}/poly1305/ref-64.c) |