Algo num fix
This commit is contained in:
parent
7c2ebd847e
commit
5e351798e0
6 changed files with 5760 additions and 5772 deletions
|
@ -630,7 +630,6 @@ extern "C" {
|
|||
assert(output != nullptr);
|
||||
alignas(16) uint64_t tempHash[8];
|
||||
switch (algo) {
|
||||
case xmrig::Algorithm::RX_DEFYX: rx_sipesh_k12(tempHash, sizeof(tempHash), input, inputSize); break;
|
||||
case xmrig::Algorithm::RX_XLA: rx_yespower_k12(tempHash, sizeof(tempHash), input, inputSize); break;
|
||||
default: rx_blake2b_wrapper::run(tempHash, sizeof(tempHash), input, inputSize);
|
||||
}
|
||||
|
@ -646,7 +645,6 @@ extern "C" {
|
|||
|
||||
void randomx_calculate_hash_first(randomx_vm* machine, uint64_t (&tempHash)[8], const void* input, size_t inputSize, const xmrig::Algorithm algo) {
|
||||
switch (algo) {
|
||||
case xmrig::Algorithm::RX_DEFYX: rx_sipesh_k12(tempHash, sizeof(tempHash), input, inputSize); break;
|
||||
case xmrig::Algorithm::RX_XLA: rx_yespower_k12(tempHash, sizeof(tempHash), input, inputSize); break;
|
||||
default: rx_blake2b_wrapper::run(tempHash, sizeof(tempHash), input, inputSize);
|
||||
}
|
||||
|
@ -665,7 +663,6 @@ extern "C" {
|
|||
|
||||
// Finish current hash and fill the scratchpad for the next hash at the same time
|
||||
switch (algo) {
|
||||
case xmrig::Algorithm::RX_DEFYX: rx_sipesh_k12(tempHash, sizeof(tempHash), nextInput, nextInputSize); break;
|
||||
case xmrig::Algorithm::RX_XLA: rx_yespower_k12(tempHash, sizeof(tempHash), nextInput, nextInputSize); break;
|
||||
default: rx_blake2b_wrapper::run(tempHash, sizeof(tempHash), nextInput, nextInputSize);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue