Add Stellite (XTL) support as cn/xtl.

This commit is contained in:
XMRig 2018-04-27 00:28:52 +07:00
parent 85f9bd97f1
commit 3df99fbced
3 changed files with 26 additions and 6 deletions

View file

@ -58,8 +58,12 @@ bool MultiWorker<N>::selfTest()
if (m_thread->algorithm() == xmrig::CRYPTONIGHT && memcmp(m_hash, test_output_v0, sizeof m_hash) == 0) {
m_thread->fn(xmrig::VARIANT_1)(test_input, 76, m_hash, m_ctx);
if (memcmp(m_hash, test_output_v1, sizeof m_hash) != 0) {
return false;
}
return memcmp(m_hash, test_output_v1, sizeof m_hash) == 0;
m_thread->fn(xmrig::VARIANT_XTL)(test_input, 76, m_hash, m_ctx);
return memcmp(m_hash, test_output_xtl, sizeof m_hash) == 0;
}
# ifndef XMRIG_NO_AEON