RandomX: align args
tempHash/output must be 16-byte aligned for randomx_calculate_hash{,_first,_next}
This commit is contained in:
parent
bfd5a81937
commit
a705ab775b
4 changed files with 5 additions and 5 deletions
|
@ -114,7 +114,7 @@ static void getResults(JobBundle &bundle, std::vector<JobResult> &results, uint3
|
|||
{
|
||||
const auto &algorithm = bundle.job.algorithm();
|
||||
auto memory = new VirtualMemory(algorithm.l3(), false, false, false);
|
||||
uint8_t hash[32]{ 0 };
|
||||
alignas(16) uint8_t hash[32]{ 0 };
|
||||
|
||||
if (algorithm.family() == Algorithm::RANDOM_X) {
|
||||
# ifdef XMRIG_ALGO_RANDOMX
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue