Fix wrong check on the define CRYPTOPP_BOOL_X64

This commit is contained in:
Mounir IDRASSI 2019-12-09 18:50:40 +01:00
parent 214efac67e
commit 31c4fbfc12
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F

View File

@ -774,7 +774,7 @@ void sha256_begin(sha256_ctx* ctx)
if (!sha256transfunc)
{
#ifndef NO_OPTIMIZED_VERSIONS
#ifdef CRYPTOPP_BOOL_X64
#if CRYPTOPP_BOOL_X64
if (g_isIntel && HasSAVX2() && HasSBMI2())
sha256transfunc = Avx2Sha256Transform;
else if (g_isIntel && HasSAVX())