Added experimental DefyX support

This commit is contained in:
MoneroOcean 2019-08-15 17:23:22 -07:00
parent 4639c860a4
commit c19cb4672d
30 changed files with 5249 additions and 2 deletions

View file

@ -115,6 +115,7 @@ static AlgoName const algorithm_names[] = {
{ "RandomWOW", nullptr, Algorithm::RX_WOW },
{ "randomx/loki", "rx/loki", Algorithm::RX_LOKI },
{ "RandomXL", nullptr, Algorithm::RX_LOKI },
{ "DefyX", "defyx", Algorithm::DEFYX },
# endif
};
@ -159,6 +160,9 @@ size_t xmrig::Algorithm::l2() const
case RX_WOW:
return 0x20000;
case DEFYX:
return 0x20000;
default:
break;
}
@ -189,6 +193,9 @@ size_t xmrig::Algorithm::l3() const
case RX_WOW:
return oneMiB;
case DEFYX:
return 0x40000;
default:
break;
}
@ -241,6 +248,7 @@ xmrig::Algorithm::Family xmrig::Algorithm::family(Id id)
case RX_0:
case RX_WOW:
case RX_LOKI:
case DEFYX:
return RANDOM_X;
# endif

View file

@ -72,6 +72,7 @@ public:
RX_0, // "rx/0" RandomX (reference configuration).
RX_WOW, // "rx/wow" RandomWOW (Wownero).
RX_LOKI, // "rx/loki" RandomXL (Loki).
DEFYX, // "defyx" DefyX (Scala).
# endif
MAX
};