-
Notifications
You must be signed in to change notification settings - Fork 778
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
Requesting clarification regarding the use of __GNUC__ in xxhash code #709
Comments
I would be surprised if this code performance hack was checked on ICC, |
Yeah those should be for GCC only. It is really annoying that in order to check for actual GCC you have to check for the imposters. How about just adding something like this /* Attempts to detect *actual* GCC. */
#define XXH_IS_GCC (defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER))
/* Detects GCC and Clang (in clang-cl mode, clang does not define __GNUC__) */
#define XXH_IS_GNU (defined(__GNUC__) || defined(__clang__)) Just like how |
I like it |
So PR missing? |
Coming back to this topic, I presume it's the kind of test where excluding |
I had a small question regarding the xxhash code. There is usage of
__GNUC__
in some places in the code(in footnote) to get the performance of the compiled code by GCC similar to clang . My question is that even ICC defines__GNUC__
. Was the code benchmarked for the performance considerations with ICC ? or should we be using an extra!defined(__INTEL_COMPILER)
.I am talking about the following two comments in your code
The text was updated successfully, but these errors were encountered: