Conversation
|
@serge-sans-paille this is ready |
|
It's actually supported only by decently recent intel compiler, but also by gcc and clang with the most recent version and providing |
|
Alternatively, if we're going to have an assembly version anyways, should we always use it? |
|
I think we can rely on the asm one, less code to maintain. Just double check that the assembly is actually as good as the one from |
|
They are very similar, I am am not knowledgeable enough to tell how it matters. |
|
I can push the ASM fix, or we can also SFINAE detect if |
|
Let's keep only the asm, and the slight difference of clang saving one instruction compared to icc and gcc is negligible compared to the invocation cost of cpuid. Just keep a comment mentioning |
The original behaviour was maintained during the CPUID refactor.
The subleaf is ignored so the the behaviour must be incorrect.
I believe Intel compiler supports
__cpuidexbut I am not sure.