mirror of
https://github.com/xmrig/xmrig.git
synced 2025-01-10 21:04:37 +00:00
Refactored CFROUND
This commit is contained in:
parent
37f44b4da5
commit
bfd017d064
1 changed files with 6 additions and 6 deletions
|
@ -1048,9 +1048,9 @@ namespace randomx {
|
||||||
|
|
||||||
if (vm_flags & RANDOMX_FLAG_AMD) {
|
if (vm_flags & RANDOMX_FLAG_AMD) {
|
||||||
*(uint64_t*)(p + pos + 7) = 0x742024443B0CE083ULL;
|
*(uint64_t*)(p + pos + 7) = 0x742024443B0CE083ULL;
|
||||||
*(uint8_t*)(p + pos + 15) = 8;
|
*(uint64_t*)(p + pos + 15) = 0x8900EB0414AE0F0AULL;
|
||||||
*(uint64_t*)(p + pos + 16) = 0x202444890414AE0FULL;
|
*(uint32_t*)(p + pos + 23) = 0x202444;
|
||||||
pos += 24;
|
pos += 26;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
*(uint64_t*)(p + pos + 7) = 0x0414AE0F0CE083ULL;
|
*(uint64_t*)(p + pos + 7) = 0x0414AE0F0CE083ULL;
|
||||||
|
@ -1071,9 +1071,9 @@ namespace randomx {
|
||||||
|
|
||||||
if (vm_flags & RANDOMX_FLAG_AMD) {
|
if (vm_flags & RANDOMX_FLAG_AMD) {
|
||||||
*(uint64_t*)(p + pos + 6) = 0x742024443B0CE083ULL;
|
*(uint64_t*)(p + pos + 6) = 0x742024443B0CE083ULL;
|
||||||
*(uint8_t*)(p + pos + 14) = 8;
|
*(uint64_t*)(p + pos + 14) = 0x8900EB0414AE0F0AULL;
|
||||||
*(uint64_t*)(p + pos + 15) = 0x202444890414AE0FULL;
|
*(uint32_t*)(p + pos + 22) = 0x202444;
|
||||||
pos += 23;
|
pos += 25;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
*(uint64_t*)(p + pos + 6) = 0x0414AE0F0CE083ULL;
|
*(uint64_t*)(p + pos + 6) = 0x0414AE0F0CE083ULL;
|
||||||
|
|
Loading…
Reference in a new issue