Use optimized Argon2 source for all x86_64 builds (#1762)

Minimum requirements for opt.c is SSE2
This commit is contained in:
Sergey Kroshnin 2019-02-22 23:51:02 +03:00 committed by GitHub
commit a67aa3f524
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -223,7 +223,7 @@ add_library (cryptopp
crypto/cryptopp/sse_simd.cpp
${CRYPTOPP_EXTRA})
if ((NANO_SIMD_OPTIMIZATIONS OR RAIBLOCKS_SIMD_OPTIMIZATIONS) AND NOT CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
if (WIN32 OR CMAKE_SYSTEM_PROCESSOR MATCHES "^(i.86|x86(_64)?)$")
set (ARGON_CORE crypto/phc-winner-argon2/src/opt.c)
else ()
set (ARGON_CORE crypto/phc-winner-argon2/src/ref.c)