Added command line option --astrobwt-avx2

This commit is contained in:
XMRig 2020-03-12 00:04:07 +07:00
parent 1986b45acd
commit 92a258f142
No known key found for this signature in database
GPG key ID: 446A53638BE94409
11 changed files with 16 additions and 9 deletions

View file

@ -159,6 +159,9 @@ void xmrig::ConfigTransform::transform(rapidjson::Document &doc, int key, const
# ifdef XMRIG_ALGO_ASTROBWT
case IConfig::AstroBWTMaxSizeKey: /* --astrobwt-max-size */
return set(doc, kCpu, "astrobwt-max-size", static_cast<uint64_t>(strtol(arg, nullptr, 10)));
case IConfig::AstroBWTAVX2Key: /* --astrobwt-avx2 */
return set(doc, kCpu, "astrobwt-avx2", true);
# endif
# ifdef XMRIG_ALGO_RANDOMX