diff --git a/src/backend/cpu/CpuConfig.cpp b/src/backend/cpu/CpuConfig.cpp index 3a17dc1f..0f156e92 100644 --- a/src/backend/cpu/CpuConfig.cpp +++ b/src/backend/cpu/CpuConfig.cpp @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -28,6 +28,7 @@ #include "backend/cpu/Cpu.h" #include "base/io/json/Json.h" #include "rapidjson/document.h" + #include diff --git a/src/backend/cpu/CpuConfig.h b/src/backend/cpu/CpuConfig.h index 090b7e6d..ba2b8410 100644 --- a/src/backend/cpu/CpuConfig.h +++ b/src/backend/cpu/CpuConfig.h @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/backend/cpu/CpuLaunchData.cpp b/src/backend/cpu/CpuLaunchData.cpp index 111adea3..dbc7e5c5 100644 --- a/src/backend/cpu/CpuLaunchData.cpp +++ b/src/backend/cpu/CpuLaunchData.cpp @@ -6,8 +6,8 @@ * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , * Copyright 2018 Lee Clagett - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -25,7 +25,6 @@ #include "backend/cpu/CpuLaunchData.h" - #include "backend/common/Tags.h" #include "backend/cpu/CpuConfig.h" @@ -39,11 +38,11 @@ xmrig::CpuLaunchData::CpuLaunchData(const Miner *miner, const Algorithm &algorit hugePages(config.isHugePages()), hwAES(config.isHwAES()), yield(config.isYield()), + astrobwtMaxSize(config.astrobwtMaxSize()), priority(config.priority()), affinity(thread.affinity()), miner(miner), - intensity(std::min(thread.intensity(), algorithm.maxIntensity())), - astrobwtMaxSize(config.astrobwtMaxSize()) + intensity(std::min(thread.intensity(), algorithm.maxIntensity())) { } diff --git a/src/backend/cpu/CpuLaunchData.h b/src/backend/cpu/CpuLaunchData.h index 37814e68..0ba8ad7f 100644 --- a/src/backend/cpu/CpuLaunchData.h +++ b/src/backend/cpu/CpuLaunchData.h @@ -6,8 +6,8 @@ * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , * Copyright 2018 Lee Clagett - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -61,11 +61,11 @@ public: const bool hugePages; const bool hwAES; const bool yield; + const int astrobwtMaxSize; const int priority; const int64_t affinity; const Miner *miner; const uint32_t intensity; - const int astrobwtMaxSize; }; diff --git a/src/backend/cpu/CpuWorker.cpp b/src/backend/cpu/CpuWorker.cpp index b0934aad..0740cca2 100644 --- a/src/backend/cpu/CpuWorker.cpp +++ b/src/backend/cpu/CpuWorker.cpp @@ -77,10 +77,10 @@ xmrig::CpuWorker::CpuWorker(size_t id, const CpuLaunchData &data) : Worker(id, data.affinity, data.priority), m_algorithm(data.algorithm), m_assembly(data.assembly), - m_astrobwtMaxSize(data.astrobwtMaxSize * 1000), m_hwAES(data.hwAES), m_yield(data.yield), m_av(data.av()), + m_astrobwtMaxSize(data.astrobwtMaxSize * 1000), m_miner(data.miner), m_ctx() { diff --git a/src/backend/cpu/CpuWorker.h b/src/backend/cpu/CpuWorker.h index 1e715357..8d2c583f 100644 --- a/src/backend/cpu/CpuWorker.h +++ b/src/backend/cpu/CpuWorker.h @@ -70,10 +70,10 @@ private: const Algorithm m_algorithm; const Assembly m_assembly; - const int m_astrobwtMaxSize; const bool m_hwAES; const bool m_yield; const CnHash::AlgoVariant m_av; + const int m_astrobwtMaxSize; const Miner *m_miner; cryptonight_ctx *m_ctx[N]; uint8_t m_hash[N * 32]{ 0 };