Renamed macros for enable/disable algorithms.
This commit is contained in:
parent
09cdddc7f6
commit
d9eb700e03
11 changed files with 38 additions and 40 deletions
|
@ -244,7 +244,7 @@ void xmrig::Config::setThreads(const rapidjson::Value &threads)
|
|||
|
||||
xmrig::AlgoVariant xmrig::Config::getAlgoVariant() const
|
||||
{
|
||||
# ifndef XMRIG_NO_AEON
|
||||
# ifdef XMRIG_ALGO_CN_LITE
|
||||
if (m_algorithm.algo() == xmrig::CRYPTONIGHT_LITE) {
|
||||
return getAlgoVariantLite();
|
||||
}
|
||||
|
@ -262,7 +262,7 @@ xmrig::AlgoVariant xmrig::Config::getAlgoVariant() const
|
|||
}
|
||||
|
||||
|
||||
#ifndef XMRIG_NO_AEON
|
||||
#ifdef XMRIG_ALGO_CN_LITE
|
||||
xmrig::AlgoVariant xmrig::Config::getAlgoVariantLite() const
|
||||
{
|
||||
if (m_algoVariant <= AV_AUTO || m_algoVariant >= AV_MAX) {
|
||||
|
|
|
@ -90,7 +90,7 @@ private:
|
|||
void setThreads(const rapidjson::Value &threads);
|
||||
|
||||
AlgoVariant getAlgoVariant() const;
|
||||
# ifndef XMRIG_NO_AEON
|
||||
# ifdef XMRIG_ALGO_CN_LITE
|
||||
AlgoVariant getAlgoVariantLite() const;
|
||||
# endif
|
||||
|
||||
|
|
|
@ -37,15 +37,15 @@ Usage: " APP_ID " [OPTIONS]\n\
|
|||
Options:\n\
|
||||
-a, --algo=ALGO specify the algorithm to use\n\
|
||||
cryptonight\n"
|
||||
#ifndef XMRIG_NO_AEON
|
||||
#ifdef XMRIG_ALGO_CN_LITE
|
||||
"\
|
||||
cryptonight-lite\n"
|
||||
#endif
|
||||
#ifndef XMRIG_NO_SUMO
|
||||
#ifdef XMRIG_ALGO_CN_HEAVY
|
||||
"\
|
||||
cryptonight-heavy\n"
|
||||
#endif
|
||||
#ifndef XMRIG_NO_CN_PICO
|
||||
#ifdef XMRIG_ALGO_CN_PICO
|
||||
"\
|
||||
cryptonight-pico\n"
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue