Added generic Argon2 implementation (conflicts with RandomX).

This commit is contained in:
XMRig
2019-08-16 00:31:29 +07:00
parent b55b97ff8f
commit faf18262eb
53 changed files with 5140 additions and 126 deletions

View File

@@ -166,7 +166,7 @@ namespace xmrig {
template<>
xmrig::IWorker *xmrig::Workers<CpuLaunchData>::create(Thread<CpuLaunchData> *handle)
{
const int intensity = handle->config().intensity;
const uint32_t intensity = static_cast<uint32_t>(handle->config().intensity);
# if defined(XMRIG_ALGO_RANDOMX) || defined(XMRIG_ALGO_CN_GPU)
if (intensity > handle->config().algorithm.maxIntensity()) {