Removed cn/wow algorithm (coin forked to rx/wow).

This commit is contained in:
XMRig 2019-08-27 09:34:08 +07:00
parent ec1839d580
commit 82696000e4
19 changed files with 4 additions and 2401 deletions

View file

@ -255,7 +255,7 @@ static int v4_random_math_init(struct V4_Instruction* code, const uint64_t heigh
code_size = 0;
int total_iterations = 0;
r8_used = (ALGO == xmrig::Algorithm::CN_WOW);
r8_used = false;
// Generate random code to achieve minimal required latency for our abstract CPU
// Try to get this latency for all 4 registers
@ -299,7 +299,7 @@ static int v4_random_math_init(struct V4_Instruction* code, const uint64_t heigh
// Don't do ADD/SUB/XOR with the same register
if (((opcode == ADD) || (opcode == SUB) || (opcode == XOR)) && (a == b)) {
// a is always < 4, so we don't need to check bounds here
b = (ALGO == xmrig::Algorithm::CN_WOW) ? (a + 4) : 8;
b = 8;
src_index = b;
}