mirror of
https://github.com/xmrig/xmrig.git
synced 2025-01-23 03:05:09 +00:00
Merge pull request #1849 from cohcho/soft_aes_optimization1
soft_aes: fix previous optimization
This commit is contained in:
commit
d51fe01273
1 changed files with 18 additions and 6 deletions
|
@ -260,14 +260,26 @@ void hashAndFillAes1Rx4(void *scratchpad, size_t scratchpadSize, void *hash, voi
|
||||||
rx_store_vec_i128((rx_vec_i128*)scratchpadPtr + k * 4 + 2, fill_state2); \
|
rx_store_vec_i128((rx_vec_i128*)scratchpadPtr + k * 4 + 2, fill_state2); \
|
||||||
rx_store_vec_i128((rx_vec_i128*)scratchpadPtr + k * 4 + 3, fill_state3);
|
rx_store_vec_i128((rx_vec_i128*)scratchpadPtr + k * 4 + 3, fill_state3);
|
||||||
|
|
||||||
HASH_STATE(0);
|
switch(softAes) {
|
||||||
HASH_STATE(1);
|
case 0:
|
||||||
|
HASH_STATE(0);
|
||||||
|
HASH_STATE(1);
|
||||||
|
|
||||||
FILL_STATE(0);
|
FILL_STATE(0);
|
||||||
FILL_STATE(1);
|
FILL_STATE(1);
|
||||||
|
|
||||||
rx_prefetch_t0(prefetchPtr);
|
rx_prefetch_t0(prefetchPtr);
|
||||||
rx_prefetch_t0(prefetchPtr + 64);
|
rx_prefetch_t0(prefetchPtr + 64);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
HASH_STATE(0);
|
||||||
|
FILL_STATE(0);
|
||||||
|
rx_prefetch_t0(prefetchPtr);
|
||||||
|
|
||||||
|
HASH_STATE(1);
|
||||||
|
FILL_STATE(1);
|
||||||
|
rx_prefetch_t0(prefetchPtr + 64);
|
||||||
|
}
|
||||||
|
|
||||||
scratchpadPtr += 128;
|
scratchpadPtr += 128;
|
||||||
prefetchPtr += 128;
|
prefetchPtr += 128;
|
||||||
|
|
Loading…
Reference in a new issue