Add optional CryptoNight-Lite support.

This commit is contained in:
XMRig 2017-05-10 12:58:52 +03:00
parent 3b46f5eb64
commit d3b0038bda
15 changed files with 1061 additions and 22 deletions

View file

@ -144,7 +144,7 @@ static BOOL TrySetLockPagesPrivilege() {
const char * persistent_memory_allocate() {
const int ratio = opt_double_hash ? 2 : 1;
const int ratio = (opt_double_hash && opt_algo != ALGO_CRYPTONIGHT_LITE) ? 2 : 1;
const int size = MEMORY * (opt_n_threads * ratio + 1);
if (TrySetLockPagesPrivilege()) {