Renamed macros for enable/disable algorithms.

This commit is contained in:
XMRig 2019-06-09 15:29:26 +07:00
parent 09cdddc7f6
commit d9eb700e03
11 changed files with 38 additions and 40 deletions

View file

@ -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) {

View file

@ -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

View file

@ -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