mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-07 07:55:04 -05:00
#446 Better fix, second variable always aligned.
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user