These are defined in cpuid.h and are self-documenting for more expressive code. https://clang.llvm.org/doxygen/cpuid_8h_source.html
Prompted by looking into #12903
These are defined in cpuid.h and are self-documenting for more expressive code. https://clang.llvm.org/doxygen/cpuid_8h_source.html
Prompted by looking into #12903
These are defined in cpuid.h and are self-documenting for more expressive code.
https://clang.llvm.org/doxygen/cpuid_8h_source.html
How portable is this to other compilers, such as GCC or MSVC? I don't think this is a C standard.
Good point, I used definitions found in the current GCC & clang headers: https://clang.llvm.org/doxygen/cpuid_8h_source.html https://github.com/gcc-mirror/gcc/blob/master/gcc/config/i386/cpuid.h
GCC's was added 11 years ago, but the clang definition was added 2 years ago: https://github.com/Microsoft/clang/commit/331c3de83304fe93fc6ccabbf953c542427e2aee https://github.com/gcc-mirror/gcc/commit/daf03e2f6d2149ef64bbbbf9fdb81e8ad0c07c99
Which explains why the mac 10.11 build is failing: https://travis-ci.org/bitcoin/bitcoin/jobs/364018488
Couldn't find anything about msvc support. Closing this as not ready for use.