Fix autoconfig and memory allocation for heavy algo.

This commit is contained in:
XMRig
2018-04-03 16:08:15 +07:00
parent c04c10f69d
commit e467894b97
7 changed files with 42 additions and 14 deletions

View File

@@ -30,6 +30,9 @@
#include <stdint.h>
#include "xmrig.h"
struct cryptonight_ctx;
@@ -42,7 +45,7 @@ public:
Lock = 4
};
static bool allocate(int algo, int threads, bool doubleHash, bool enabled);
static bool allocate(xmrig::Algo algo, int threads, bool doubleHash, bool enabled);
static cryptonight_ctx *create(int threadId);
static void *calloc(size_t num, size_t size);
static void release();