-
Notifications
You must be signed in to change notification settings - Fork 354
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
Conversation
c/blake3_dispatch.c
Outdated
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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. 4cc34b0
cd1605e
to
9df48b4
Compare
9df48b4
to
dcff6b6
Compare
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.