Skip to content

[WIP] sha1: add x86 intrinsics support #166

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

Closed
wants to merge 4 commits into from
Closed

Conversation

newpavlov
Copy link
Member

@newpavlov newpavlov commented Jun 11, 2020

On Ryzen 7 2700X I get up to 2.2 GB/s. For now CPUID detection is absent. I plan to add it based on the approach used in getrandom.

Unfortunately GitHub Actions workers do not have SHA instructions, so we will not be able to properly test this code in CI.

@linkmauve
Can you please check that I haven't broke ARM code?

@newpavlov
Copy link
Member Author

Closed in favor of #167.

@newpavlov newpavlov closed this Jun 11, 2020
@newpavlov newpavlov deleted the intrinsics_sha1 branch June 11, 2020 12:52
@linkmauve
Copy link
Contributor

linkmauve commented Jun 11, 2020

Hi, why are you removing runtime feature detection? Very often the code will be built for a generic CPU and will run on one with those extensions (on ARM at least).

@newpavlov
Copy link
Member Author

I am not removing it, it's just not implemented in the draft PR yet.

@newpavlov
Copy link
Member Author

newpavlov commented Jun 11, 2020

And ARM detection works without changes (at least it should).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants