mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-18 18:11:05 +00:00
#446 Fixed SIGBUS error on 32 bit ARM CPUs.
This commit is contained in:
parent
5d6a622b18
commit
d900a6d9dd
1 changed files with 3 additions and 2 deletions
|
@ -38,8 +38,9 @@
|
|||
# define VARIANT1_INIT(part) \
|
||||
uint64_t tweak1_2_##part = 0; \
|
||||
if (VARIANT > 0) { \
|
||||
volatile const uint64_t a = *reinterpret_cast<const uint64_t*>(input + 35 + part * size); \
|
||||
volatile const uint64_t b = *(reinterpret_cast<const uint64_t*>(ctx[part]->state) + 24); \
|
||||
uint64_t a, b; \
|
||||
memcpy(&a, input + 35 + part * size, sizeof a); \
|
||||
memcpy(&b, ctx[part]->state + 192, sizeof b); \
|
||||
tweak1_2_##part = a ^ b; \
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue