mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-16 19:22:46 -05:00
Algo num fix
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user