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

initial SIMD acceleration for the XOF (AVX-512-only, Unix-only) #418

Merged
merged 14 commits into from
Aug 19, 2024

Conversation

oconnor663
Copy link
Member

@oconnor663 oconnor663 commented Aug 18, 2024

Most of this code has been around for a while on one branch or another, and this PR is a review before I push it to master. All of the assembly was written by @sneves.

uint8_t out[64], size_t outblocks) {
#if defined(IS_X86)
const enum cpu_feature features = get_cpu_features();
#if defined(__unix__) && !defined(BLAKE3_NO_AVX512)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sneves what do you think about using __unix__ here?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Considering that what is effectively being excluded here is Windows, maybe !defined(_WIN32) would make more sense. I believe Apple toolchains may not respect __unix__ and will define __APPLE__ or __MACH__ or something like that instead.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. 4cc34b0

@oconnor663 oconnor663 force-pushed the xof_integration_rebase branch 2 times, most recently from cd1605e to 9df48b4 Compare August 18, 2024 23:55
@oconnor663 oconnor663 merged commit 4cc34b0 into master Aug 19, 2024
144 of 153 checks passed
@oconnor663 oconnor663 deleted the xof_integration_rebase branch August 19, 2024 17:10
@oconnor663 oconnor663 mentioned this pull request Aug 23, 2024
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