diff options
author | psychocrypt <psychocryptHPC@gmail.com> | 2018-04-27 21:45:40 +0200 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2018-06-04 21:07:11 +0000 |
commit | 84471e3d48b0423410384d41c2ce467b19f2b73a (patch) | |
tree | 6178551102088739478b093771b1fa92fbdc884e /xmrstak/backend/cpu/minethd.cpp | |
parent | 864baffb78f00773dd7e976a9c16aeef4af82e4d (diff) | |
download | xmr-stak-84471e3d48b0423410384d41c2ce467b19f2b73a.zip xmr-stak-84471e3d48b0423410384d41c2ce467b19f2b73a.tar.gz |
support stellite v4 fork
solve #1494
- add algorithm `cryptonight_v7_stellite` (internal named: `cryptonight_stellite`)
Diffstat (limited to 'xmrstak/backend/cpu/minethd.cpp')
-rw-r--r-- | xmrstak/backend/cpu/minethd.cpp | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/xmrstak/backend/cpu/minethd.cpp b/xmrstak/backend/cpu/minethd.cpp index bbb4eec..5753fd6 100644 --- a/xmrstak/backend/cpu/minethd.cpp +++ b/xmrstak/backend/cpu/minethd.cpp @@ -289,6 +289,9 @@ bool minethd::self_test() else if(::jconf::inst()->GetCurrentCoinSelection().GetDescription(1).GetMiningAlgo() == cryptonight_ipbc) { } + else if(::jconf::inst()->GetCurrentCoinSelection().GetDescription(1).GetMiningAlgo() == cryptonight_stellite) + { + } for (int i = 0; i < MAX_N; i++) cryptonight_free_ctx(ctx[i]); @@ -374,6 +377,9 @@ minethd::cn_hash_fun minethd::func_selector(bool bHaveAes, bool bNoPrefetch, xmr case cryptonight_ipbc: algv = 5; break; + case cryptonight_stellite: + algv = 6; + break; default: algv = 2; break; @@ -403,7 +409,11 @@ minethd::cn_hash_fun minethd::func_selector(bool bHaveAes, bool bNoPrefetch, xmr cryptonight_hash<cryptonight_ipbc, false, false>, cryptonight_hash<cryptonight_ipbc, true, false>, cryptonight_hash<cryptonight_ipbc, false, true>, - cryptonight_hash<cryptonight_ipbc, true, true> + cryptonight_hash<cryptonight_ipbc, true, true>, + cryptonight_hash<cryptonight_stellite, false, false>, + cryptonight_hash<cryptonight_stellite, true, false>, + cryptonight_hash<cryptonight_stellite, false, true>, + cryptonight_hash<cryptonight_stellite, true, true> }; std::bitset<2> digit; @@ -543,6 +553,9 @@ minethd::cn_hash_fun_multi minethd::func_multi_selector(size_t N, bool bHaveAes, case cryptonight_ipbc: algv = 5; break; + case cryptonight_stellite: + algv = 6; + break; default: algv = 2; break; @@ -649,7 +662,24 @@ minethd::cn_hash_fun_multi minethd::func_multi_selector(size_t N, bool bHaveAes, cryptonight_penta_hash<cryptonight_ipbc, false, false>, cryptonight_penta_hash<cryptonight_ipbc, true, false>, cryptonight_penta_hash<cryptonight_ipbc, false, true>, - cryptonight_penta_hash<cryptonight_ipbc, true, true> + cryptonight_penta_hash<cryptonight_ipbc, true, true>, + + cryptonight_double_hash<cryptonight_stellite, false, false>, + cryptonight_double_hash<cryptonight_stellite, true, false>, + cryptonight_double_hash<cryptonight_stellite, false, true>, + cryptonight_double_hash<cryptonight_stellite, true, true>, + cryptonight_triple_hash<cryptonight_stellite, false, false>, + cryptonight_triple_hash<cryptonight_stellite, true, false>, + cryptonight_triple_hash<cryptonight_stellite, false, true>, + cryptonight_triple_hash<cryptonight_stellite, true, true>, + cryptonight_quad_hash<cryptonight_stellite, false, false>, + cryptonight_quad_hash<cryptonight_stellite, true, false>, + cryptonight_quad_hash<cryptonight_stellite, false, true>, + cryptonight_quad_hash<cryptonight_stellite, true, true>, + cryptonight_penta_hash<cryptonight_stellite, false, false>, + cryptonight_penta_hash<cryptonight_stellite, true, false>, + cryptonight_penta_hash<cryptonight_stellite, false, true>, + cryptonight_penta_hash<cryptonight_stellite, true, true>, }; std::bitset<2> digit; |