Fixed ARM build.
This commit is contained in:
parent
8716f362f8
commit
6b4f2d0a91
5 changed files with 23 additions and 23 deletions
|
@ -50,7 +50,7 @@ MemInfo Mem::create(cryptonight_ctx **ctx, xmrig::Algo algorithm, size_t count)
|
|||
allocate(info, m_enabled);
|
||||
|
||||
for (size_t i = 0; i < count; ++i) {
|
||||
cryptonight_ctx *c = static_cast<cryptonight_ctx *>(_mm_malloc(sizeof(cryptonight_ctx), 16));
|
||||
cryptonight_ctx *c = static_cast<cryptonight_ctx *>(_mm_malloc(sizeof(cryptonight_ctx), 4096));
|
||||
c->memory = info.memory + (i * cn_select_memory(algorithm));
|
||||
|
||||
ctx[i] = c;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue