mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-18 18:11:05 +00:00
#446 Better fix, second variable always aligned.
This commit is contained in:
parent
26ee5028e1
commit
651637d637
1 changed files with 2 additions and 4 deletions
|
@ -38,10 +38,8 @@
|
||||||
# define VARIANT1_INIT(part) \
|
# define VARIANT1_INIT(part) \
|
||||||
uint64_t tweak1_2_##part = 0; \
|
uint64_t tweak1_2_##part = 0; \
|
||||||
if (VARIANT > 0) { \
|
if (VARIANT > 0) { \
|
||||||
uint64_t a, b; \
|
memcpy(&tweak1_2_##part, input + 35 + part * size, sizeof tweak1_2_##part); \
|
||||||
memcpy(&a, input + 35 + part * size, sizeof a); \
|
tweak1_2_##part ^= *(reinterpret_cast<const uint64_t*>(ctx[part]->state) + 24); \
|
||||||
memcpy(&b, ctx[part]->state + 192, sizeof b); \
|
|
||||||
tweak1_2_##part = a ^ b; \
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue