Fixed gcc build.

This commit is contained in:
XMRig 2020-03-23 05:30:11 +07:00
parent b7fbb28a47
commit 382bfb0957
No known key found for this signature in database
GPG key ID: 446A53638BE94409
2 changed files with 8 additions and 1 deletions

View file

@ -207,7 +207,7 @@ public:
# ifdef XMRIG_ALGO_ASTROBWT # ifdef XMRIG_ALGO_ASTROBWT
if (algo.family() == Algorithm::ASTROBWT) { if (algo.family() == Algorithm::ASTROBWT) {
algo_l3 = xmrig::OclAstroBWTRunner::BWT_DATA_STRIDE * 17 + 324; algo_l3 = OclAstroBWTRunner::BWT_DATA_STRIDE * 17 + 324;
} }
# endif # endif

View file

@ -37,8 +37,15 @@
#include "base/net/stratum/Job.h" #include "base/net/stratum/Job.h"
namespace xmrig {
constexpr int STAGE1_SIZE = 147253; constexpr int STAGE1_SIZE = 147253;
constexpr uint32_t STAGE1_DATA_STRIDE = (STAGE1_SIZE + 256 + 255) & ~255U; constexpr uint32_t STAGE1_DATA_STRIDE = (STAGE1_SIZE + 256 + 255) & ~255U;
constexpr uint32_t OclAstroBWTRunner::BWT_DATA_STRIDE;
} // namespace xmrig
xmrig::OclAstroBWTRunner::OclAstroBWTRunner(size_t index, const OclLaunchData &data) : OclBaseRunner(index, data) xmrig::OclAstroBWTRunner::OclAstroBWTRunner(size_t index, const OclLaunchData &data) : OclBaseRunner(index, data)