1
0
mirror of https://github.com/xmrig/xmrig.git synced 2026-04-18 05:22:28 -04:00

Revert "Merge branch 'pr3764' into dev"

This reverts commit 0d9a372e49, reversing
changes made to 1a04bf2904.
This commit is contained in:
XMRig
2026-01-21 21:32:51 +07:00
parent 0d9a372e49
commit db24bf5154
22 changed files with 70 additions and 241 deletions

View File

@@ -49,15 +49,6 @@ void xmrig::CnCtx::release(cryptonight_ctx **ctx, size_t count)
}
for (size_t i = 0; i < count; ++i) {
if (ctx[i] && ctx[i]->generated_code) {
# ifdef XMRIG_OS_WIN
VirtualMemory::freeLargePagesMemory(reinterpret_cast<void *>(ctx[i]->generated_code), 0);
# else
VirtualMemory::freeLargePagesMemory(reinterpret_cast<void *>(ctx[i]->generated_code), 0x4000);
# endif
ctx[i]->generated_code = nullptr;
}
_mm_free(ctx[i]);
}
}

View File

@@ -235,7 +235,7 @@ static HashReturn Init(hashState *state, int hashbitlen)
/*initialize the initial hash value of JH*/
state->hashbitlen = hashbitlen;
/*load the initial hash value into state*/
/*load the intital hash value into state*/
switch (hashbitlen)
{
case 224: memcpy(state->x,JH224_H0,128); break;

View File

@@ -48,7 +48,7 @@
multiple of size / 8)
ptr_cast(x,size) casts a pointer to a pointer to a
variable of length 'size' bits
varaiable of length 'size' bits
*/
#define ui_type(size) uint##size##_t