diff options
author | psychocrypt <psychocrypt@users.noreply.github.com> | 2017-10-26 20:58:27 +0200 |
---|---|---|
committer | psychocrypt <psychocrypt@users.noreply.github.com> | 2017-10-27 20:13:19 +0200 |
commit | 12802f12e30f57c2a9eefca2c1a5955275c95127 (patch) | |
tree | a10bced239ecd012ceeed593571a3fb8bccee9cb /xmrstak/backend/cpu/crypto/cryptonight_common.cpp | |
parent | 41451d91e8e50f2b6c4b07630987dbc5a58aecb9 (diff) | |
download | xmr-stak-12802f12e30f57c2a9eefca2c1a5955275c95127.zip xmr-stak-12802f12e30f57c2a9eefca2c1a5955275c95127.tar.gz |
rename `xmr` to `monero`
- rename all `xmr` to `monero`
- be insensitive while check for set currency
- add function to compate two strings insensitive
Diffstat (limited to 'xmrstak/backend/cpu/crypto/cryptonight_common.cpp')
-rw-r--r-- | xmrstak/backend/cpu/crypto/cryptonight_common.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xmrstak/backend/cpu/crypto/cryptonight_common.cpp b/xmrstak/backend/cpu/crypto/cryptonight_common.cpp index 70ad27c..c73dbd8 100644 --- a/xmrstak/backend/cpu/crypto/cryptonight_common.cpp +++ b/xmrstak/backend/cpu/crypto/cryptonight_common.cpp @@ -30,8 +30,8 @@ extern "C" } #include "cryptonight.h" #include "cryptonight_aesni.h" -#include "../../../jconf.hpp" -#include "../../cryptonight.hpp" +#include "xmrstak/backend/cryptonight.hpp" +#include "xmrstak/jconf.hpp" #include <stdio.h> #include <stdlib.h> @@ -197,9 +197,9 @@ size_t cryptonight_init(size_t use_fast_mem, size_t use_mlock, alloc_msg* msg) cryptonight_ctx* cryptonight_alloc_ctx(size_t use_fast_mem, size_t use_mlock, alloc_msg* msg) { size_t hashMemSize; - if(::jconf::inst()->IsCurrencyXMR()) + if(::jconf::inst()->IsCurrencyMonero()) { - hashMemSize = XMR_MEMORY; + hashMemSize = MONERO_MEMORY; } else { @@ -277,9 +277,9 @@ cryptonight_ctx* cryptonight_alloc_ctx(size_t use_fast_mem, size_t use_mlock, al void cryptonight_free_ctx(cryptonight_ctx* ctx) { size_t hashMemSize; - if(::jconf::inst()->IsCurrencyXMR()) + if(::jconf::inst()->IsCurrencyMonero()) { - hashMemSize = XMR_MEMORY; + hashMemSize = MONERO_MEMORY; } else { |