RandomX: align args

tempHash/output must be 16-byte aligned for randomx_calculate_hash{,_first,_next}
This commit is contained in:
cohcho 2020-10-07 14:47:18 +00:00
parent bfd5a81937
commit a705ab775b
4 changed files with 5 additions and 5 deletions

View file

@ -215,7 +215,7 @@ void xmrig::CpuWorker<N>::start()
# ifdef XMRIG_ALGO_RANDOMX
bool first = true;
uint64_t tempHash[8] = {};
alignas(16) uint64_t tempHash[8] = {};
// RandomX is faster, we don't need to store stats so often
if (m_job.currentJob().algorithm().family() == Algorithm::RANDOM_X) {