Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add hw-accelerated SHA1 #10899

Merged
merged 4 commits into from Jul 30, 2022
Merged

add hw-accelerated SHA1 #10899

merged 4 commits into from Jul 30, 2022

Conversation

shuffle2
Copy link
Contributor

@shuffle2 shuffle2 commented Jul 27, 2022

on x64 (amd zen2): 3x speedup
on arm64 (qc "SQ1"): 2.5x speedup

SHA1 is relatively important for (wii) disc read performance and some other stuff. Might as well go fast if it's possible.

The unittests are mainly added because the arm64 implementation actually seems to trigger a msvc compiler bug (or i've made some bug which doesn't cause any compiler warning). The tests should help guard against something like that occurring in the future / on different compilers/versions.

this PR is ready to merge, but fwiw I've opened a msvc bug for the compiler issue here https://developercommunity.visualstudio.com/t/ARM64-bad-codegen-when-optimzing-intrins/10106733

@shuffle2 shuffle2 force-pushed the sha1 branch 8 times, most recently from 2fa371b to 978214c Compare July 27, 2022 08:04
@AdmiralCurtiss AdmiralCurtiss merged commit a9d9f5c into dolphin-emu:master Jul 30, 2022
@shuffle2 shuffle2 deleted the sha1 branch July 31, 2022 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants