#111 Fixed build without AEON support.

dev
XMRig 2017-09-16 15:20:33 +03:00
parent 3a7bb24b40
commit 4cf3bb9930
1 changed files with 4 additions and 0 deletions

View File

@ -140,5 +140,9 @@ bool CryptoNight::selfTest(int algo) {
_mm_free(ctx->memory);
_mm_free(ctx);
# ifndef XMRIG_NO_AEON
return memcmp(output, algo == Options::ALGO_CRYPTONIGHT_LITE ? test_output1 : test_output0, (Options::i()->doubleHash() ? 64 : 32)) == 0;
# else
return memcmp(output, test_output0, (Options::i()->doubleHash() ? 64 : 32)) == 0;
# endif
}