scrypt_common: check for sse2 support the same way as everywhere else

This commit is contained in:
Frank Denis 2017-02-28 15:08:40 +01:00
parent 9904e95bde
commit 88cc2c6ba5

View File

@ -234,9 +234,7 @@ crypto_pwhash_scryptsalsa208sha256_ll(const uint8_t *passwd, size_t passwdlen,
if (escrypt_init_local(&local)) {
return -1; /* LCOV_EXCL_LINE */
}
#if defined(HAVE_EMMINTRIN_H) || \
(defined(_MSC_VER) && \
(defined(_M_X64) || defined(_M_AMD64) || defined(_M_IX86)))
#if defined(HAVE_EMMINTRIN_H)
escrypt_kdf =
sodium_runtime_has_sse2() ? escrypt_kdf_sse : escrypt_kdf_nosse;
#else