Implemented new style algorithm definitions (except ARM), removed Algo and Variant enums.

This commit is contained in:
XMRig
2019-06-13 22:08:52 +07:00
parent 6838673ddb
commit bbd28e8535
30 changed files with 1223 additions and 1359 deletions

View File

@@ -33,7 +33,7 @@
#include "workers/Worker.h"
class Handle;
namespace xmrig {
template<size_t N>
@@ -48,11 +48,11 @@ protected:
void start() override;
private:
bool resume(const xmrig::Job &job);
bool verify(xmrig::Variant variant, const uint8_t *referenceValue);
bool verify2(xmrig::Variant variant, const uint8_t *referenceValue);
bool resume(const Job &job);
bool verify(const Algorithm &algorithm, const uint8_t *referenceValue);
bool verify2(const Algorithm &algorithm, const uint8_t *referenceValue);
void consumeJob();
void save(const xmrig::Job &job);
void save(const Job &job);
inline uint32_t *nonce(size_t index)
{
@@ -61,8 +61,8 @@ private:
struct State
{
alignas(16) uint8_t blob[xmrig::Job::kMaxBlobSize * N];
xmrig::Job job;
alignas(16) uint8_t blob[Job::kMaxBlobSize * N];
Job job;
};
@@ -73,4 +73,7 @@ private:
};
} // namespace xmrig
#endif /* XMRIG_MULTIWORKER_H */