-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Move STATIC_BMI2 define to portability_macros.h #4264
base: dev
Are you sure you want to change the base?
Conversation
Note, portability_macros.h is included only in 3 places:
compiler.h does include portability_macros.h. |
I'm supportive of this change. I'm also wondering if |
Also, cc @terrelln , since it might be relevant to kernel code and assembly units |
yep, but then I get more and more changes on top :) |
+ if `__BMI2__` defined, then set STATIC_BMI2 for all compilers + use `defined(_MSC_VER) && defined(__AVX2__)` as fallback for ms compiler
@terrelln ping |
5e70aac
to
0a18362
Compare
After the change, step by step changes:
|
This change makes sure that STATIC_BMI and DYNAMIC_BMI are defined close to each other, and not in other headers.
Also, it reorders
__BMI2__
check:__BMI2__
defined, then set STATIC_BMI2 for all compilersdefined(_MSC_VER) && defined(__AVX2__)
as fallback for ms compiler