aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-02-06 17:04:30 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-02-06 17:04:30 +0000
commit84a551b5fb0d3c052b7f06a46400cc841ebba7c0 (patch)
tree134411f8c24c5fa27932ab3b849bec7636b34e1a /src/libcryptobox/CMakeLists.txt
parentceb87422adb1d3cc36a7e4de9c728299c31f465a (diff)
downloadrspamd-84a551b5fb0d3c052b7f06a46400cc841ebba7c0.tar.gz
rspamd-84a551b5fb0d3c052b7f06a46400cc841ebba7c0.zip
[Minor] Add sse42 support
Diffstat (limited to 'src/libcryptobox/CMakeLists.txt')
-rw-r--r--src/libcryptobox/CMakeLists.txt2
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)