mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-18 18:11:05 +00:00
Sync changes.
This commit is contained in:
parent
ab60add9d5
commit
3f8898f228
5 changed files with 10 additions and 4 deletions
|
@ -109,6 +109,8 @@ static AlgoData const xmrStakAlgorithms[] = {
|
||||||
{ "cryptonight_masari", nullptr, xmrig::CRYPTONIGHT, xmrig::VARIANT_MSR },
|
{ "cryptonight_masari", nullptr, xmrig::CRYPTONIGHT, xmrig::VARIANT_MSR },
|
||||||
{ "cryptonight-bittube2", nullptr, xmrig::CRYPTONIGHT_HEAVY, xmrig::VARIANT_TUBE }, // bittube-miner
|
{ "cryptonight-bittube2", nullptr, xmrig::CRYPTONIGHT_HEAVY, xmrig::VARIANT_TUBE }, // bittube-miner
|
||||||
{ "cryptonight_alloy", nullptr, xmrig::CRYPTONIGHT, xmrig::VARIANT_XAO }, // xmr-stak-alloy
|
{ "cryptonight_alloy", nullptr, xmrig::CRYPTONIGHT, xmrig::VARIANT_XAO }, // xmr-stak-alloy
|
||||||
|
{ "cryptonight_turtle", nullptr, xmrig::CRYPTONIGHT_PICO, xmrig::VARIANT_TRTL },
|
||||||
|
{ "cryptonight_gpu", nullptr, xmrig::CRYPTONIGHT, xmrig::VARIANT_GPU },
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -77,6 +77,7 @@ private:
|
||||||
#define CYAN(x) "\x1B[0;36m" x "\x1B[0m"
|
#define CYAN(x) "\x1B[0;36m" x "\x1B[0m"
|
||||||
#define WHITE_BOLD(x) "\x1B[1;37m" x "\x1B[0m"
|
#define WHITE_BOLD(x) "\x1B[1;37m" x "\x1B[0m"
|
||||||
#define WHITE(x) "\x1B[0;37m" x "\x1B[0m"
|
#define WHITE(x) "\x1B[0;37m" x "\x1B[0m"
|
||||||
|
#define GRAY(x) "\x1B[1;30m" x "\x1B[0m"
|
||||||
|
|
||||||
|
|
||||||
#define LOG_ERR(x, ...) Log::i()->message(ILogBackend::ERR, x, ##__VA_ARGS__)
|
#define LOG_ERR(x, ...) Log::i()->message(ILogBackend::ERR, x, ##__VA_ARGS__)
|
||||||
|
|
|
@ -36,7 +36,7 @@ enum Algo {
|
||||||
CRYPTONIGHT_LITE, /* CryptoNight (1 MB) */
|
CRYPTONIGHT_LITE, /* CryptoNight (1 MB) */
|
||||||
CRYPTONIGHT_HEAVY, /* CryptoNight (4 MB) */
|
CRYPTONIGHT_HEAVY, /* CryptoNight (4 MB) */
|
||||||
CRYPTONIGHT_PICO, /* CryptoNight (256 KB) */
|
CRYPTONIGHT_PICO, /* CryptoNight (256 KB) */
|
||||||
CRYPTONIGHT_MAX
|
ALGO_MAX
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,9 @@
|
||||||
#define XMRIG_CRYPTONIGHT_TEST_H
|
#define XMRIG_CRYPTONIGHT_TEST_H
|
||||||
|
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
|
||||||
const static uint8_t test_input[380] = {
|
const static uint8_t test_input[380] = {
|
||||||
0x03, 0x05, 0xA0, 0xDB, 0xD6, 0xBF, 0x05, 0xCF, 0x16, 0xE5, 0x03, 0xF3, 0xA6, 0x6F, 0x78, 0x00,
|
0x03, 0x05, 0xA0, 0xDB, 0xD6, 0xBF, 0x05, 0xCF, 0x16, 0xE5, 0x03, 0xF3, 0xA6, 0x6F, 0x78, 0x00,
|
||||||
0x7C, 0xBF, 0x34, 0x14, 0x43, 0x32, 0xEC, 0xBF, 0xC2, 0x2E, 0xD9, 0x5C, 0x87, 0x00, 0x38, 0x3B,
|
0x7C, 0xBF, 0x34, 0x14, 0x43, 0x32, 0xEC, 0xBF, 0xC2, 0x2E, 0xD9, 0x5C, 0x87, 0x00, 0x38, 0x3B,
|
||||||
|
|
|
@ -150,9 +150,9 @@ xmrig::CpuThread::cn_hash_fun xmrig::CpuThread::fn(Algo algorithm, AlgoVariant a
|
||||||
assert(variant >= VARIANT_0 && variant < VARIANT_MAX);
|
assert(variant >= VARIANT_0 && variant < VARIANT_MAX);
|
||||||
|
|
||||||
# ifndef XMRIG_NO_ASM
|
# ifndef XMRIG_NO_ASM
|
||||||
constexpr const size_t count = VARIANT_MAX * 10 * CRYPTONIGHT_MAX + 12;
|
constexpr const size_t count = VARIANT_MAX * 10 * ALGO_MAX + 12;
|
||||||
# else
|
# else
|
||||||
constexpr const size_t count = VARIANT_MAX * 10 * CRYPTONIGHT_MAX;
|
constexpr const size_t count = VARIANT_MAX * 10 * ALGO_MAX;
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
static const cn_hash_fun func_table[] = {
|
static const cn_hash_fun func_table[] = {
|
||||||
|
@ -617,7 +617,7 @@ size_t xmrig::CpuThread::fnIndex(Algo algorithm, AlgoVariant av, Variant variant
|
||||||
return index;
|
return index;
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr const size_t offset = VARIANT_MAX * 10 * CRYPTONIGHT_MAX;
|
constexpr const size_t offset = VARIANT_MAX * 10 * ALGO_MAX;
|
||||||
size_t extra_offset = 0;
|
size_t extra_offset = 0;
|
||||||
|
|
||||||
if (algorithm == CRYPTONIGHT && (variant == VARIANT_2 || variant == VARIANT_HALF)) {
|
if (algorithm == CRYPTONIGHT && (variant == VARIANT_2 || variant == VARIANT_HALF)) {
|
||||||
|
|
Loading…
Reference in a new issue