Merged v4.0.0-beta
This commit is contained in:
commit
993733cb1f
231 changed files with 32642 additions and 3380 deletions
|
@ -31,14 +31,21 @@
|
|||
|
||||
|
||||
xmrig::Algorithm::Id xmrig::RxAlgo::apply(Algorithm::Id algorithm)
|
||||
{
|
||||
randomx_apply_config(*base(algorithm));
|
||||
|
||||
return algorithm;
|
||||
}
|
||||
|
||||
|
||||
const RandomX_ConfigurationBase *xmrig::RxAlgo::base(Algorithm::Id algorithm)
|
||||
{
|
||||
switch (algorithm) {
|
||||
case Algorithm::RX_WOW:
|
||||
randomx_apply_config(RandomX_WowneroConfig);
|
||||
break;
|
||||
return &RandomX_WowneroConfig;
|
||||
|
||||
case Algorithm::RX_LOKI:
|
||||
randomx_apply_config(RandomX_LokiConfig);
|
||||
return &RandomX_LokiConfig;
|
||||
break;
|
||||
|
||||
case Algorithm::DEFYX:
|
||||
|
@ -46,9 +53,32 @@ xmrig::Algorithm::Id xmrig::RxAlgo::apply(Algorithm::Id algorithm)
|
|||
break;
|
||||
|
||||
default:
|
||||
randomx_apply_config(RandomX_MoneroConfig);
|
||||
break;
|
||||
}
|
||||
|
||||
return algorithm;
|
||||
return &RandomX_MoneroConfig;
|
||||
}
|
||||
|
||||
|
||||
uint32_t xmrig::RxAlgo::version(Algorithm::Id algorithm)
|
||||
{
|
||||
return algorithm == Algorithm::RX_WOW ? 103 : 104;
|
||||
}
|
||||
|
||||
|
||||
uint32_t xmrig::RxAlgo::programCount(Algorithm::Id algorithm)
|
||||
{
|
||||
return base(algorithm)->ProgramCount;
|
||||
}
|
||||
|
||||
|
||||
uint32_t xmrig::RxAlgo::programIterations(Algorithm::Id algorithm)
|
||||
{
|
||||
return base(algorithm)->ProgramIterations;
|
||||
}
|
||||
|
||||
|
||||
uint32_t xmrig::RxAlgo::programSize(Algorithm::Id algorithm)
|
||||
{
|
||||
return base(algorithm)->ProgramSize;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue