-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2644 from fireice-uk/rx-ryzen-code
[RX] Implement Ryzen speedups
- Loading branch information
Showing
8 changed files
with
113 additions
and
28 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
xmrstak/backend/cpu/crypto/randomx/asm/program_read_dataset_ryzen.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
mov rcx, rbp ;# ecx = ma | ||
shr rcx, 32 | ||
and ecx, RANDOMX_DATASET_BASE_MASK | ||
xor rbp, rax ;# modify "mx" | ||
mov rax, qword ptr [rdi+rcx] | ||
mov edx, ebp ;# edx = mx | ||
and edx, RANDOMX_DATASET_BASE_MASK | ||
prefetchnta byte ptr [rdi+rdx] | ||
ror rbp, 32 ;# swap "ma" and "mx" | ||
xor r8, rax | ||
xor r9, qword ptr [rdi+rcx+8] | ||
xor r10, qword ptr [rdi+rcx+16] | ||
xor r11, qword ptr [rdi+rcx+24] | ||
xor r12, qword ptr [rdi+rcx+32] | ||
xor r13, qword ptr [rdi+rcx+40] | ||
xor r14, qword ptr [rdi+rcx+48] | ||
xor r15, qword ptr [rdi+rcx+56] | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters