Fix code style

This commit is contained in:
SChernykh 2020-04-09 14:31:42 +02:00
parent abb3340cc7
commit 680e4dd865
4 changed files with 8 additions and 8 deletions

View file

@ -93,7 +93,7 @@ template<size_t N>
xmrig::CpuWorker<N>::~CpuWorker()
{
# ifdef XMRIG_ALGO_RANDOMX
RxVm::Destroy(m_vm);
RxVm::destroy(m_vm);
# endif
CnCtx::release(m_ctx, N);
@ -118,7 +118,7 @@ void xmrig::CpuWorker<N>::allocateRandomX_VM()
}
if (!m_vm) {
m_vm = RxVm::Create(dataset, m_memory->scratchpad(), !m_hwAES, m_assembly, m_node);
m_vm = RxVm::create(dataset, m_memory->scratchpad(), !m_hwAES, m_assembly, m_node);
}
}
#endif

View file

@ -31,7 +31,7 @@
#include "crypto/rx/RxVm.h"
randomx_vm* xmrig::RxVm::Create(RxDataset *dataset, uint8_t *scratchpad, bool softAes, xmrig::Assembly assembly, uint32_t node)
randomx_vm* xmrig::RxVm::create(RxDataset *dataset, uint8_t *scratchpad, bool softAes, xmrig::Assembly assembly, uint32_t node)
{
int flags = 0;
@ -59,7 +59,7 @@ randomx_vm* xmrig::RxVm::Create(RxDataset *dataset, uint8_t *scratchpad, bool so
}
void xmrig::RxVm::Destroy(randomx_vm* vm)
void xmrig::RxVm::destroy(randomx_vm* vm)
{
if (vm) {
randomx_destroy_vm(vm);

View file

@ -50,8 +50,8 @@ class RxVm
public:
XMRIG_DISABLE_COPY_MOVE_DEFAULT(RxVm);
static randomx_vm* Create(RxDataset *dataset, uint8_t *scratchpad, bool softAes, xmrig::Assembly assembly, uint32_t node);
static void Destroy(randomx_vm* vm);
static randomx_vm* create(RxDataset *dataset, uint8_t *scratchpad, bool softAes, xmrig::Assembly assembly, uint32_t node);
static void destroy(randomx_vm* vm);
};

View file

@ -116,7 +116,7 @@ static void getResults(JobBundle &bundle, std::vector<JobResult> &results, uint3
return;
}
auto vm = RxVm::Create(dataset, memory->scratchpad(), !hwAES, Assembly::NONE, 0);
auto vm = RxVm::create(dataset, memory->scratchpad(), !hwAES, Assembly::NONE, 0);
for (uint32_t nonce : bundle.nonces) {
*bundle.job.nonce() = nonce;
@ -126,7 +126,7 @@ static void getResults(JobBundle &bundle, std::vector<JobResult> &results, uint3
checkHash(bundle, results, nonce, hash, errors);
}
RxVm::Destroy(vm);
RxVm::destroy(vm);
# endif
}
else if (algorithm.family() == Algorithm::ARGON2) {