1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-08 00:15:04 -05:00

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

@@ -82,7 +82,7 @@ private:
const int m_astrobwtMaxSize;
const Miner *m_miner;
cryptonight_ctx *m_ctx[N];
uint8_t m_hash[N * 32]{ 0 };
alignas(16) uint8_t m_hash[N * 32]{ 0 };
VirtualMemory *m_memory = nullptr;
WorkerJob<N> m_job;