summaryrefslogtreecommitdiffstats
path: root/xmrstak/backend/cryptonight.hpp
diff options
context:
space:
mode:
authorpsychocrypt <psychocryptHPC@gmail.com>2018-03-29 21:02:58 +0200
committerpsychocrypt <psychocryptHPC@gmail.com>2018-03-29 21:02:58 +0200
commit0c48570ac662662fc9e808c0efe042f843fd6b23 (patch)
tree411c61a06a9e90beb4c727a18fa490dbe47f53fc /xmrstak/backend/cryptonight.hpp
parent5a2c4444a4e2b5ddc5e5dbf98990dcad45e32fe8 (diff)
downloadxmr-stak-0c48570ac662662fc9e808c0efe042f843fd6b23.zip
xmr-stak-0c48570ac662662fc9e808c0efe042f843fd6b23.tar.gz
github annotations
- documentation: change `aeon` to `aeon7` - change `case` order in `switch` statements - update README.txt
Diffstat (limited to 'xmrstak/backend/cryptonight.hpp')
-rw-r--r--xmrstak/backend/cryptonight.hpp20
1 files changed, 7 insertions, 13 deletions
diff --git a/xmrstak/backend/cryptonight.hpp b/xmrstak/backend/cryptonight.hpp
index 538f1d8..8a8e259 100644
--- a/xmrstak/backend/cryptonight.hpp
+++ b/xmrstak/backend/cryptonight.hpp
@@ -49,16 +49,14 @@ inline size_t cn_select_memory(xmrstak_algo algo)
{
switch(algo)
{
+ case cryptonight_monero:
case cryptonight:
- return CRYPTONIGHT_MEMORY;
+ return CRYPTONIGHT_MEMORY;
+ case cryptonight_aeon:
case cryptonight_lite:
return CRYPTONIGHT_LITE_MEMORY;
- case cryptonight_monero:
- return CRYPTONIGHT_MEMORY;
case cryptonight_heavy:
return CRYPTONIGHT_HEAVY_MEMORY;
- case cryptonight_aeon:
- return CRYPTONIGHT_LITE_MEMORY;
default:
return 0;
}
@@ -86,16 +84,14 @@ inline size_t cn_select_mask(xmrstak_algo algo)
{
switch(algo)
{
+ case cryptonight_monero:
case cryptonight:
return CRYPTONIGHT_MASK;
+ case cryptonight_aeon:
case cryptonight_lite:
return CRYPTONIGHT_LITE_MASK;
- case cryptonight_monero:
- return CRYPTONIGHT_MASK;
case cryptonight_heavy:
return CRYPTONIGHT_HEAVY_MASK;
- case cryptonight_aeon:
- return CRYPTONIGHT_LITE_MASK;
default:
return 0;
}
@@ -123,16 +119,14 @@ inline size_t cn_select_iter(xmrstak_algo algo)
{
switch(algo)
{
+ case cryptonight_monero:
case cryptonight:
return CRYPTONIGHT_ITER;
+ case cryptonight_aeon:
case cryptonight_lite:
return CRYPTONIGHT_LITE_ITER;
- case cryptonight_monero:
- return CRYPTONIGHT_ITER;
case cryptonight_heavy:
return CRYPTONIGHT_HEAVY_ITER;
- case cryptonight_aeon:
- return CRYPTONIGHT_LITE_ITER;
default:
return 0;
}
OpenPOWER on IntegriCloud