Cleanup.
This commit is contained in:
parent
a0194ddd18
commit
4f6ffb67c1
2 changed files with 2 additions and 3 deletions
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
|
|
||||||
#define ADD_FN(algo) do { \
|
#define ADD_FN(algo) do { \
|
||||||
if (!m_map[algo]) m_map[algo] = new cn_hash_fun_array{}; \
|
m_map[algo] = new cn_hash_fun_array{}; \
|
||||||
m_map[algo]->data[AV_SINGLE][Assembly::NONE] = cryptonight_single_hash<algo, false, 0>; \
|
m_map[algo]->data[AV_SINGLE][Assembly::NONE] = cryptonight_single_hash<algo, false, 0>; \
|
||||||
m_map[algo]->data[AV_SINGLE_SOFT][Assembly::NONE] = cryptonight_single_hash<algo, true, 0>; \
|
m_map[algo]->data[AV_SINGLE_SOFT][Assembly::NONE] = cryptonight_single_hash<algo, true, 0>; \
|
||||||
m_map[algo]->data[AV_DOUBLE][Assembly::NONE] = cryptonight_double_hash<algo, false>; \
|
m_map[algo]->data[AV_DOUBLE][Assembly::NONE] = cryptonight_double_hash<algo, false>; \
|
||||||
|
@ -57,7 +57,6 @@
|
||||||
|
|
||||||
#ifdef XMRIG_FEATURE_ASM
|
#ifdef XMRIG_FEATURE_ASM
|
||||||
# define ADD_FN_ASM(algo) do { \
|
# define ADD_FN_ASM(algo) do { \
|
||||||
if (!m_map[algo]) m_map[algo] = new cn_hash_fun_array{}; \
|
|
||||||
m_map[algo]->data[AV_SINGLE][Assembly::INTEL] = cryptonight_single_hash_asm<algo, Assembly::INTEL>; \
|
m_map[algo]->data[AV_SINGLE][Assembly::INTEL] = cryptonight_single_hash_asm<algo, Assembly::INTEL>; \
|
||||||
m_map[algo]->data[AV_SINGLE][Assembly::RYZEN] = cryptonight_single_hash_asm<algo, Assembly::RYZEN>; \
|
m_map[algo]->data[AV_SINGLE][Assembly::RYZEN] = cryptonight_single_hash_asm<algo, Assembly::RYZEN>; \
|
||||||
m_map[algo]->data[AV_SINGLE][Assembly::BULLDOZER] = cryptonight_single_hash_asm<algo, Assembly::BULLDOZER>; \
|
m_map[algo]->data[AV_SINGLE][Assembly::BULLDOZER] = cryptonight_single_hash_asm<algo, Assembly::BULLDOZER>; \
|
||||||
|
|
|
@ -62,11 +62,11 @@ public:
|
||||||
|
|
||||||
static cn_hash_fun fn(const Algorithm &algorithm, AlgoVariant av, Assembly::Id assembly);
|
static cn_hash_fun fn(const Algorithm &algorithm, AlgoVariant av, Assembly::Id assembly);
|
||||||
|
|
||||||
|
private:
|
||||||
struct cn_hash_fun_array {
|
struct cn_hash_fun_array {
|
||||||
cn_hash_fun data[AV_MAX][Assembly::MAX];
|
cn_hash_fun data[AV_MAX][Assembly::MAX];
|
||||||
};
|
};
|
||||||
|
|
||||||
private:
|
|
||||||
std::map<Algorithm, cn_hash_fun_array*> m_map;
|
std::map<Algorithm, cn_hash_fun_array*> m_map;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue